resource = resources.get( 0 );
assertThat( resource.role(), is( "test-service-role" ) );
assertThat( resource.pattern(), is( "test-service/?**" ) );
List<FilterDescriptor> filters = resource.filters();
assertThat( filters.size(), is( 1 ) );
FilterDescriptor filter = filters.get( 0 );
assertThat( filter.role(), is( "pivot") );
assertThat( filter.name(), is( "jersey" ) );
assertThat( filter.impl(), is( "org.glassfish.jersey.servlet.ServletContainer" ) );
List<FilterParamDescriptor> params = filter.params();
assertThat( params.size(), is( 1 ) );
FilterParamDescriptor param = params.get( 0 );
assertThat( param.name(), is( "jersey.config.server.provider.packages" ) );
assertThat( param.value(), is( "test-package-1;test-package-2" ) );
resource = resources.get( 1 );
assertThat( resource.role(), is( "test-service-role" ) );
assertThat( resource.pattern(), is( "test-service/**?**" ) );
filters = resource.filters();
assertThat( filters.size(), is( 1 ) );
filter = filters.get( 0 );
assertThat( filter.role(), is( "pivot") );
assertThat( filter.name(), is( "jersey" ) );
assertThat( filter.impl(), is( "org.glassfish.jersey.servlet.ServletContainer" ) );
params = filter.params();
assertThat( params.size(), is( 1 ) );
param = params.get( 0 );
assertThat( param.name(), is( "jersey.config.server.provider.packages" ) );
assertThat( param.value(), is( "test-package-1;test-package-2" ) );
}