@Test
public void testRoleOverwriteAllows() {

    PermissionSet base = PermissionSet.of(SEND_MESSAGES);
    List<PermissionOverwrite> roleOverwrites = Collections.singletonList(overwrite(PermissionSet.of(PRIORITY_SPEAKER), PermissionSet.none()));
    PermissionSet actual = PermissionUtil.computePermissions(base, null, roleOverwrites, null);
    PermissionSet expected = PermissionSet.of(SEND_MESSAGES, PRIORITY_SPEAKER);
    assertEquals(expected, actual);
}