PurgeNamespaceReason implements ShutdownReason { public static PurgeNamespaceReason of(final CharSequence namespace) { return new PurgeNamespaceReason(argumentNotEmpty(namespace, "namespace").toString()); } 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 tryToGetInstanceWithEmptyNamespace() { assertThatIllegalArgumentException() .isThrownBy(() -> PurgeNamespaceReason.of("")) .withMessageContaining("namespace") .withMessageContaining("not be empty") .withNoCause(); }