@Test
  public void testGetInputFiles() throws URISyntaxException {
    Path applicationDirectory = getResource("gradle/application");

    List<Path> extraDirectories = Arrays.asList(applicationDirectory.resolve("extra-directory"));
    FileCollection fileCollection =
        GradleProjectProperties.getInputFiles(
            project, extraDirectories, JavaPlugin.RUNTIME_CLASSPATH_CONFIGURATION_NAME);

    assertThat(fileCollection)
        .comparingElementsUsing(FILE_PATH_OF)
        .containsExactly(
            applicationDirectory.resolve("build/classes/java/main"),
            applicationDirectory.resolve("build/resources/main"),
            applicationDirectory.resolve("dependencies/dependencyX-1.0.0-SNAPSHOT.jar"),
            applicationDirectory.resolve("dependencies/dependency-1.0.0.jar"),
            applicationDirectory.resolve("dependencies/more/dependency-1.0.0.jar"),
            applicationDirectory.resolve("dependencies/another/one/dependency-1.0.0.jar"),
            applicationDirectory.resolve("dependencies/libraryA.jar"),
            applicationDirectory.resolve("dependencies/libraryB.jar"),
            applicationDirectory.resolve("dependencies/library.jarC.jar"),
            applicationDirectory.resolve("extra-directory"));
  }
Helper for reading back layers in a {@link BuildContext}.
jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleProjectPropertiesTest.java