private static void assertPathListsAreEqual(List<Path> expected, List<String> actual)
      throws IOException {
    Assert.assertEquals(expected.size(), actual.size());
    for (int index = 0; index < expected.size(); index++) {
      Assert.assertEquals(
          expected.get(index).toRealPath(), Paths.get(actual.get(index)).toRealPath());
    }
  }
Asserts that two lists contain the same paths. Required to avoid Mac's /var/ vs. /private/var/
symlink issue.

@param expected the expected list of paths
@param actual the actual list of paths
@throws IOException if checking if two files are the same fails
jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/skaffold/FilesTaskV2Test.java