@Test
public void testGrantAdminPrivilege() throws Exception {

  users.createUser("user", "user");
  final User user = users.getAnyUser("user");
  users.grantAdminPrivilege(user.getUserId());
  Assert.assertTrue(users.getAnyUser("user").isAdmin());
}