@Test
public void testRegisteredServletNames() throws Exception {
WebTarget target = target("application" + getIndex()).path("helloworld" + getIndex()).path("servlets");
Assert.assertEquals(AbstractHelloWorldResource.NUMBER_OF_APPLICATIONS, (int)target.request().get(Integer.TYPE));
target = target.path("{name}");
testRegisteredServletNames(target, "org.glassfish.jersey.tests.integration.servlet_3_init_provider.Application1");
testRegisteredServletNames(target, "application2");
testRegisteredServletNames(target, "application3");
testRegisteredServletNames(target, "org.glassfish.jersey.tests.integration.servlet_3_init_provider.Application4");
testRegisteredServletNames(target, "javax.ws.rs.core.Application");