response = api.getAllPrivileges();
TreeSet<String> all = (TreeSet<String>) response.object;
assertTrue(! all.contains("TEST"));
//deleting the same privilege again should give correct error
response = api.deletePrivilege("test",
helper.loginWithPrivilege(Privileges.EDIT_PRIVILEGE));
assertTrue(response.statusCode == Status.ERROR_RESOURCE_DOES_NOT_EXIST);
//admin can delete as well
response = api.addPrivilege("test",