@Test
  public void testFilesTask_multiProjectComplexService() throws IOException {
    Path projectRoot = multiTestProject.getProjectRoot();
    Path complexServiceRoot = projectRoot.resolve("complex-service");
    Path libRoot = projectRoot.resolve("lib");
    SkaffoldFilesOutput result =
        new SkaffoldFilesOutput(verifyTaskSuccess(multiTestProject, "complex-service"));
    assertPathListsAreEqual(
        ImmutableList.of(
            projectRoot.resolve("build.gradle"),
            projectRoot.resolve("settings.gradle"),
            projectRoot.resolve("gradle.properties"),
            complexServiceRoot.resolve("build.gradle"),
            libRoot.resolve("build.gradle")),
        result.getBuild());
    assertPathListsAreEqual(
        ImmutableList.of(
            complexServiceRoot.resolve("src/main/extra-resources-1"),
            complexServiceRoot.resolve("src/main/extra-resources-2"),
            complexServiceRoot.resolve("src/main/java"),
            complexServiceRoot.resolve("src/main/other-jib"),
            libRoot.resolve("src/main/resources"),
            libRoot.resolve("src/main/java"),
            complexServiceRoot.resolve(
                "local-m2-repo/com/google/cloud/tools/tiny-test-lib/0.0.1-SNAPSHOT/tiny-test-lib-0.0.1-SNAPSHOT.jar")),
        result.getInputs());
    assertThat(result.getIgnore()).isEmpty();
  }
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