### Question:
ApplicationSettingResource { @GET @Produces(MediaType.APPLICATION_JSON) public Response getSettings(@Auth UserInfo userInfo) { return Response.ok(settingService.getSettings()).build(); } @Inject  ApplicationSettingResource(ApplicationSettingService settingService); @PUT @Path("budget/{maxBudgetAllowed}") Response setMaxBudget(@Auth UserInfo userInfo,
								 @PathParam("maxBudgetAllowed") @Min(1) Long maxBudget); @DELETE @Path("budget") Response removeAllowedBudget(@Auth UserInfo userInfo); @GET @Produces(MediaType.APPLICATION_JSON) Response getSettings(@Auth UserInfo userInfo);  }### Answer:
@Test public void getSettings() { when(applicationSettingService.getSettings()).thenReturn(Collections.singletonMap("key", "value")); final Response response = resources.getJerseyTest() .target("/settings") .request() .header("Authorization", "Bearer " + TOKEN) .get(); final Map map = response.readEntity(Map.class); assertEquals(HttpStatus.SC_OK, response.getStatus()); assertEquals(MediaType.APPLICATION_JSON_TYPE, response.getMediaType()); assertEquals(1, map.size()); assertEquals("value", map.get("key")); verify(applicationSettingService).getSettings(); verifyNoMoreInteractions(applicationSettingService); }