client.destroy();
}
public void createInitialUser(String id, String password, String firstName, String lastName) {
UserDto user = new UserDto();
UserCredentialsDto credentials = new UserCredentialsDto();
credentials.setPassword(password);
user.setCredentials(credentials);
UserProfileDto profile = new UserProfileDto();
profile.setId(id);
profile.setFirstName(firstName);
profile.setLastName(lastName);
user.setProfile(profile);
WebResource webResource = client.resource(testProperties.getApplicationPath("/camunda/api/admin/setup/default/user/create"));
ClientResponse clientResponse = webResource.accept(MediaType.APPLICATION_JSON).type(MediaType.APPLICATION_JSON).post(ClientResponse.class, user);
try {
if (clientResponse.getResponseStatus() != Response.Status.NO_CONTENT) {