### Question:
StatisticsResource { @OPTIONS @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @ApiOperation(value = "Get options over statistics conext.", httpMethod = "OPTIONS", response = StatisticsOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) public StatisticsOptionListContainer getOptions() { StatisticsOptionListContainer statisticsOptionListContainer = new StatisticsOptionListContainer( uriInfo.getBaseUri()); return statisticsOptionListContainer; } StatisticsResource();  StatisticsResource(StatisticsManager statisticsManager); @OPTIONS @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @ApiOperation(value = "Get options over statistics conext.", httpMethod = "OPTIONS", response = StatisticsOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) StatisticsOptionListContainer getOptions(); @GET @Path("/" + StatisticsOptionListContainer.OPTIONS) @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @ApiOperation(value = "Get options over statistics conext.", httpMethod = "GET", response = StatisticsOptionListContainer.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a list of all available options)") }) StatisticsOptionListContainer getGETOptions(); @GET @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @ApiOperation(value = "Retrieve the statistics.", httpMethod = "GET", response = String.class) @ApiResponses(value = { @ApiResponse(code = 200, message = "OK (Response containing a String message)"), @ApiResponse(code = 500, message = "InternalServerErrorException") }) Response getStatistics(); public StatisticsManager statisticsManager; }### Answer:
@Test public void testGetOptions() { int numberOfAvailableOptions = 3; WebTarget target = target("/" + StatisticsOptionListContainer.STATISTICS); Response response = target.request(MediaType.APPLICATION_XML).options(); assertEquals(200, response.getStatus()); response = target.request(MediaType.APPLICATION_JSON).options(); assertEquals(200, response.getStatus()); StatisticsOptionListContainer solc = response .readEntity(StatisticsOptionListContainer.class); assertEquals(numberOfAvailableOptions, solc.getOptionList().size()); }