when(request.headers()).thenReturn(headers);
JsonArray resources = new JsonArray().add("com.englishtown.vertx.jersey.resources");
config.put(DefaultJerseyOptions.CONFIG_RESOURCES, resources);
ContainerResponseWriterProvider provider = mock(ContainerResponseWriterProvider.class);
when(provider.get(any(HttpServerRequest.class), any(ContainerRequest.class))).thenReturn(mock(ContainerResponseWriter.class));
when(serviceLocator.<Ref<Vertx>>getService((new TypeLiteral<Ref<Vertx>>() {
}).getType())).thenReturn(vertxRef);
when(serviceLocator.<Ref<Container>>getService((new TypeLiteral<Ref<Container>>() {
}).getType())).thenReturn(containerRef);