@Test
public void testMemberOverwriteAllows() {

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