@Test
public void getMaxWeightForAllPermissionsReturnsEmptyOptionalForEmptySubjectsMap() {

    final Optional<Integer> maxWeightForAllPermissions =
            underTest.getMaxWeightForAllPermissions(subjectIds, permissions);
    assertThat(maxWeightForAllPermissions).isEmpty();
}