@Test
public void testNoOverwritesYieldsOriginal() {

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