@Test
public void testOptionsOnChild() throws ExecutionException, InterruptedException {
ResourceConfig resourceConfig = new ResourceConfig(ResourceA.class, ResourceB.class, ResourceQ.class);
ApplicationHandler app = new ApplicationHandler(resourceConfig);
final ContainerResponse containerResponse = app.apply(RequestContextBuilder.from("/resq/c", "OPTIONS")
.accept(MediaType.TEXT_PLAIN).build()).get();
Assert.assertEquals(200, containerResponse.getStatus());
Assert.assertEquals("GET, OPTIONS, HEAD, PUT", containerResponse.getEntity());
}