@Test
  public void testSyncMapTask_multiProjectOutput() throws IOException {
    Path projectRoot = multiTestProject.getProjectRoot();
    Path complexServiceRoot = projectRoot.resolve("complex-service");
    Path libRoot = projectRoot.resolve("lib");
    SkaffoldSyncMapTemplate parsed = generateTemplate(multiTestProject, "complex-service", null);

    List<FileTemplate> generated = parsed.getGenerated();
    Assert.assertEquals(4, generated.size());
    assertFilePaths(
        libRoot.resolve("build/libs/lib.jar"),
        AbsoluteUnixPath.get("/app/libs/lib.jar"),
        generated.get(0));
    assertFilePaths(
        complexServiceRoot.resolve("build/resources/main/resource1.txt"),
        AbsoluteUnixPath.get("/app/resources/resource1.txt"),
        generated.get(1));
    assertFilePaths(
        complexServiceRoot.resolve("build/resources/main/resource2.txt"),
        AbsoluteUnixPath.get("/app/resources/resource2.txt"),
        generated.get(2));
    assertFilePaths(
        complexServiceRoot.resolve("build/classes/java/main/com/test/HelloWorld.class"),
        AbsoluteUnixPath.get("/app/classes/com/test/HelloWorld.class"),
        generated.get(3));

    List<FileTemplate> direct = parsed.getDirect();
    Assert.assertEquals(2, direct.size());
    assertFilePaths(
        complexServiceRoot.resolve(
            "local-m2-repo/com/google/cloud/tools/tiny-test-lib/0.0.1-SNAPSHOT/tiny-test-lib-0.0.1-SNAPSHOT.jar"),
        AbsoluteUnixPath.get("/app/libs/tiny-test-lib-0.0.1-SNAPSHOT.jar"),
        direct.get(0));
    assertFilePaths(
        complexServiceRoot.resolve("src/main/other-jib/extra-file"),
        AbsoluteUnixPath.get("/extra-file"),
        direct.get(1));
  }
Verifies that the sync map task succeeded and returns the parsed json.

@param project the project to run the task on
@param moduleName the name of the sub-project, or {@code null} if no sub-project
@param params extra gradle cli params to use during the build
@return the list of paths printed by the task
@throws IOException if the json parser fails
jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/skaffold/SyncMapTaskTest.java