@Test
public void testRemovePermission() throws Exception {

  createThreeProjects();
  final Project project = this.loader.fetchProjectByName("mytestProject");
  this.loader.updatePermission(project, project.getLastModifiedUser(),
      new Permission(Permission.Type.ADMIN), false);
  this.loader.removePermission(project, project.getLastModifiedUser(), false);
  final Project sameProject = this.loader.fetchProjectByName("mytestProject");
  Assert.assertEquals(sameProject.getGroupPermissions().size(), 0);
  Assert.assertEquals(sameProject.getUserPermissions().size(), 0);
}