assertEquals("201", response);
try {
// Send a duplicate invite
ErrorMessage errorMessage = jsonToObject(makeRequest(adminBaseUrl + "/user/" + userToInvite, "POST",
null, authToken), TypeFactory.defaultInstance().constructType(ErrorMessage.class));
assertEquals("Username is not available " + userToInvite, errorMessage.getErrorMessage());
// No API to do this
userService.deleteUser(userService.getUser(userToInvite));
} catch (AssertionError ae) {
try {