### Question:
GitCredsResource implements ExploratoryAPI { @PUT public Response updateGitCreds(@Auth UserInfo userInfo, @Valid @NotNull ExploratoryGitCredsDTO formDTO) { gitCredentialService.updateGitCredentials(userInfo, formDTO); return Response.ok().build(); } @Inject  GitCredsResource(GitCredentialService gitCredentialService); @PUT Response updateGitCreds(@Auth UserInfo userInfo,
								   @Valid @NotNull ExploratoryGitCredsDTO formDTO); @GET ExploratoryGitCredsDTO getGitCreds(@Auth UserInfo userInfo);  }### Answer:
@Test public void updateGitCreds() { doNothing().when(gitCredentialService).updateGitCredentials(any(UserInfo.class), any(ExploratoryGitCredsDTO.class)); final Response response = resources.getJerseyTest() .target("/user/git_creds") .request() .header("Authorization", "Bearer " + TOKEN) .put(Entity.json(getExploratoryGitCredsDTO())); assertEquals(HttpStatus.SC_OK, response.getStatus()); assertNull(response.getHeaderString(HttpHeaders.CONTENT_TYPE)); verify(gitCredentialService) .updateGitCredentials(refEq(getUserInfo()), refEq(getExploratoryGitCredsDTO(), "self")); verifyNoMoreInteractions(gitCredentialService); }