### Question:
RootResource { @OPTIONS @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @ApiOperation(value = "Get options over all the conexts.", httpMethod = "OPTIONS", response = RootOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) public RootOptionListContainer getOptions() { RootOptionListContainer rootOptionListContainer = new RootOptionListContainer(uriInfo.getBaseUri()); return rootOptionListContainer; }  @OPTIONS @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @ApiOperation(value = "Get options over all the conexts.", httpMethod = "OPTIONS", response = RootOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) RootOptionListContainer getOptions(); @GET @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @ApiOperation(value = "Get options over all the conexts.", httpMethod = "GET", response = RootOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) RootOptionListContainer getGETOptions();  }### Answer:
@Test public void testGetOptions() { int numberOfAvailableOptions = 16; WebTarget target = target("/" + RootOptionListContainer.OPTIONS); Response response = target.request(MediaType.APPLICATION_XML).options(); assertEquals(200, response.getStatus()); response = target.request(MediaType.APPLICATION_JSON).options(); assertEquals(200, response.getStatus()); RootOptionListContainer rolc = response.readEntity(RootOptionListContainer.class); assertEquals(numberOfAvailableOptions, rolc.getOptionList().size()); }