UserTemplate implements UserOperations { public void deleteUser(String userId) { restOperations.delete(USER_URL + "/" + userId); } UserTemplate(RestOperations restOperations); UserCredentials createUser(); UserCredentials createUser(UserConfig userConfig); void modifyUser(String userId, UserConfig userConfig); void resetPassword(String userId); void deleteUser(String userId); String recoverAccount(String emailAddress); String recoverAccount(String emailAddress, String udid);  }
@Test public void deleteUser() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(DELETE)) .andRespond(withResponse("", responseHeaders, HttpStatus.OK, "OK")); urbanAirship.userOperations().deleteUser("someuser"); masterKeyMockServer.verify(); }