@Test
public void testHasAdminPermission() throws UserManagerException {

  final UserManager manager = TestUtils.createTestXmlUserManager();
  final User adminUser = manager.getUser("testAdmin", "testAdmin");
  Assert.assertTrue(HttpRequestUtils.hasPermission(manager, adminUser,
      Type.ADMIN));
}