@Test
public void testComputeBase() {

    PermissionSet everyonePerms = PermissionSet.of(SEND_MESSAGES);
    List<PermissionSet> rolePerms = Arrays.asList(PermissionSet.of(BAN_MEMBERS, PRIORITY_SPEAKER), PermissionSet.of(MANAGE_ROLES));
    PermissionSet actual = PermissionUtil.computeBasePermissions(everyonePerms, rolePerms);
    PermissionSet expected = PermissionSet.of(SEND_MESSAGES, BAN_MEMBERS, PRIORITY_SPEAKER, MANAGE_ROLES);
    assertEquals(expected, actual);
}