### Question:
RegexIdentityAsserterDeploymentContributor extends
    AbstractIdentityAsserterDeploymentContributor { @Override public String getName() { return "Regex"; }  @Override String getName();  }### Answer:
@Test public void testServiceLoader() throws Exception { ServiceLoader<ProviderDeploymentContributor> loader = ServiceLoader.load( ProviderDeploymentContributor.class ); Iterator<ProviderDeploymentContributor> iterator = loader.iterator(); assertThat( "Service iterator empty.", iterator.hasNext() ); while( iterator.hasNext() ) { Object object = iterator.next(); if( object instanceof RegexIdentityAsserterDeploymentContributor ) { return; } } fail( "Failed to find " + RegexIdentityAsserterDeploymentContributor.class.getName() + " via service loader." ); }