api.assignPrivilegeToRole("role1", "privilege1", helper.loginAsSuperUser());
api.assignRoleToUser("test@test.com", "role1", helper.loginAsSuperUser());
api.assignRoleToUser("test@test.com", "role2", helper.loginAsSuperUser());
APIResponse response = api.unassignRoleToUser("test@test.com", "role2", null);
assertTrue(response.statusCode == Status.ERROR_LOGIN_REQUIRED);
response = api.unassignRoleToUser("test@test.com", "role2",
helper.loginAsInvalidUser());
assertTrue(response.statusCode == Status.ERROR_INVALID_USER);