PurgeEntitiesReason implements ShutdownReason { @Override public boolean isRelevantFor(final Object value) { if (value instanceof CharSequence) { return entityIdsToPurge.contains(value.toString()); } return false; } private  PurgeEntitiesReason(final List<String> entityIdsToPurge); static PurgeEntitiesReason of(final List<EntityId> entityIdsToPurge); @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 isRelevantForIsTrueIfPlainString() { assertThat(underTest.isRelevantFor("f:oo")).isTrue(); }
@Test public void isRelevantForIsFalseIfNamespaceIsNotEqual() { assertThat(underTest.isRelevantFor("b:ar")).isFalse(); }