EasyMock.replay( hm, hms, reg, svc, env, desc, ctx, haProvider );
}
@Test
public void testServiceLoader() throws Exception {
ServiceLoader loader = ServiceLoader.load( UrlRewriteFunctionProcessor.class );
Iterator iterator = loader.iterator();
assertThat( "Service iterator empty.", iterator.hasNext() );
while( iterator.hasNext() ) {
Object object = iterator.next();
if( object instanceof ServiceMappedAddressFunctionProcessor ) {
return;