private static void testAccess(ArrayList<Access> accessRights, Departments userDepartment, Departments departmentBeingAccessed) {
        if (testAllAccess(accessRights) || (testOwnAccess(accessRights) && testSameDepartment(userDepartment, departmentBeingAccessed))) {
            System.out.printf("The user with department %1$s has access to %2$s%n", userDepartment, departmentBeingAccessed);
        } else {
            System.out.printf("The user with department %1$s does not have access to %2$s%n", userDepartment, departmentBeingAccessed);
        }
    }