### Question:
UserSettingsResource { @PUT @Path("budget") @RolesAllowed("/user/settings") public Response updateUsersBudget(@Auth UserInfo userInfo, @Valid @NotEmpty List<UserDTO> budgets) { LOGGER.debug("User {} is updating allowed budget for users: {}", userInfo.getName(), budgets); userSettingService.updateUsersBudget(budgets); return Response.ok().build(); } @Inject  UserSettingsResource(UserSettingService userSettingService); @GET String getSettings(@Auth UserInfo userInfo); @POST Response saveSettings(@Auth UserInfo userInfo,
								 @NotBlank String settings); @PUT @Path("budget") @RolesAllowed("/user/settings") Response updateUsersBudget(@Auth UserInfo userInfo,
									  @Valid @NotEmpty List<UserDTO> budgets);  }### Answer:
@Test public void saveAllowedBudget() { doNothing().when(userSettingService).saveUISettings(any(UserInfo.class), anyString()); final Response response = resources.getJerseyTest() .target("/user/settings/budget") .request() .header("Authorization", "Bearer " + TOKEN) .put(Entity.json(singletonList(new UserDTO(USER, 10, UserDTO.Status.ACTIVE)))); assertEquals(HttpStatus.SC_OK, response.getStatus()); assertNull(response.getHeaderString(HttpHeaders.CONTENT_TYPE)); verify(userSettingService).updateUsersBudget(singletonList(new UserDTO(USER, 10, UserDTO.Status.ACTIVE))); verifyNoMoreInteractions(userSettingService); }