@Test
public void setPermissionsForAllAuthorizationSubjects() {

    underTest = AccessControlList.newBuilder() //
            .set(newAclEntry(KNOWN_AUTH_SUBJECT_FOO, Permission.READ, Permission.WRITE, Permission.ADMINISTRATE)) //
            .set(newAclEntry(KNOWN_AUTH_SUBJECT_BAR, Permission.READ)) //
            .set(newAclEntry(KNOWN_AUTH_SUBJECT_BAZ, Permission.WRITE)) //
            .build();
    assertThat(underTest).hasSize(3);
    final Permissions newPermissions = ThingsModelFactory.newPermissions(Permission.READ);
    underTest = underTest.setForAllAuthorizationSubjects(newPermissions);
    assertThat(underTest) //
            .hasSize(3) //
            .containsOnly(toAclEntry(KNOWN_AUTH_SUBJECT_FOO.getId(), Permission.READ), //
                    toAclEntry(KNOWN_AUTH_SUBJECT_BAR.getId(), Permission.READ), //
                    toAclEntry(KNOWN_AUTH_SUBJECT_BAZ.getId(), Permission.READ));
}