### Question:
AnonymousAuthDeploymentContributor extends ProviderDeploymentContributorBase { @Override public String getName() { return NAME; }  @Override String getRole(); @Override String getName(); @Override void initializeContribution(DeploymentContext context); @Override void contributeFilter(DeploymentContext context, Provider provider, Service service,
      ResourceDescriptor resource, List<FilterParamDescriptor> params);  }### Answer:
@Test public void testServiceLoader() throws Exception { ServiceLoader loader = ServiceLoader.load( ProviderDeploymentContributor.class ); Iterator iterator = loader.iterator(); assertThat( "Service iterator empty.", iterator.hasNext() ); while( iterator.hasNext() ) { Object object = iterator.next(); if( object instanceof AnonymousAuthDeploymentContributor ) { return; } } fail( "Failed to find " + AnonymousAuthDeploymentContributor.class.getName() + " via service loader." ); }