### Question:
SmsServiceHandlerFunction implements Predicate<String> { @Override public boolean apply(String serviceName) { for (Predicate<String> handled : ALREADY_HANDLED) { if (handled.apply(serviceName)) { return false; } } return true; } @Inject  SmsServiceHandlerFunction(@Named("authenticationServices") Set<String> authenticationServiceNames); @Override boolean apply(String serviceName); static final String COT_CONFIG_SERVICE; static final String IDFF_METADATA_SERVICE; static final String SAML2_METADATA_SERVICE; static final String WS_METADATA_SERVICE; final Predicate<String> CIRCLES_OF_TRUST_HANDLES_FUNCTION; final Predicate<String> AUTHENTICATION_HANDLES_FUNCTION; final Predicate<String> AUTHENTICATION_CHAINS_HANDLES_FUNCTION; final Predicate<String> ENTITYPROVIDER_HANDLES_FUNCTION; final Predicate<String> AUTHENTICATION_MODULE_HANDLES_FUNCTION; }### Answer:
@Test public void shouldIndicateKnownServiceDoesNotRequireHandling() { assertThat(handled.apply("sunFMCOTConfigService")).isFalse(); }
@Test public void shouldIndicateAnyOtherServiceRequiredHandling() { assertThat(handled.apply("dashboardService")).isTrue(); }