@Test
public void testAdminGrantsAll() {

    PermissionSet base = PermissionSet.of(ADMINISTRATOR);
    List<PermissionOverwrite> roleOverwrites = Collections.emptyList();
    PermissionSet actual = PermissionUtil.computePermissions(base, null, roleOverwrites, null);
    PermissionSet expected = PermissionSet.all();
    assertEquals(expected, actual);
}