PurgeNamespaceReason implements ShutdownReason { @Override public String toString() { return getClass().getSimpleName() + " [" + "namespaceToPurge=" + namespaceToPurge + "]"; } private  PurgeNamespaceReason(final String namespaceToPurge); static PurgeNamespaceReason of(final CharSequence namespace); @Override ShutdownReasonType getType(); @Override boolean isRelevantFor(final Object value); @Override JsonObject toJson(); @Override JsonObject toJson(final JsonSchemaVersion schemaVersion, final Predicate<JsonField> predicate); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }
@Test public void toStringContainsExpected() { assertThat(underTest.toString()) .contains(underTest.getClass().getSimpleName()) .contains(knownNamespace); }