public PolicyAssert hasNamespace(final String expectedNamespace) { isNotNull(); final String actualNamespace = actual.getNamespace().orElse(null); assertThat(actualNamespace).isEqualTo(expectedNamespace) // .overridingErrorMessage("Expected Thing namespace to be \n<%s> but was \n<%s>", expectedNamespace, actualNamespace); return this; }