@Before
  public void setUp() throws IOException, URISyntaxException, CacheDirectoryCreationException {
    fakeDependenciesLayerConfiguration =
        makeLayerConfiguration(
            "core/application/dependencies", EXTRACTION_PATH_ROOT.resolve("libs"));
    fakeSnapshotDependenciesLayerConfiguration =
        makeLayerConfiguration(
            "core/application/snapshot-dependencies", EXTRACTION_PATH_ROOT.resolve("libs"));
    fakeResourcesLayerConfiguration =
        makeLayerConfiguration(
            "core/application/resources", EXTRACTION_PATH_ROOT.resolve("resources"));
    fakeClassesLayerConfiguration =
        makeLayerConfiguration("core/application/classes", EXTRACTION_PATH_ROOT.resolve("classes"));
    fakeExtraFilesLayerConfiguration =
        FileEntriesLayer.builder()
            .addEntry(
                Paths.get(Resources.getResource("core/fileA").toURI()),
                EXTRA_FILES_LAYER_EXTRACTION_PATH.resolve("fileA"))
            .addEntry(
                Paths.get(Resources.getResource("core/fileB").toURI()),
                EXTRA_FILES_LAYER_EXTRACTION_PATH.resolve("fileB"))
            .build();
    emptyLayerConfiguration = FileEntriesLayer.builder().build();

    cache = Cache.withDirectory(temporaryFolder.newFolder().toPath());

    Mockito.when(mockBuildContext.getEventHandlers()).thenReturn(EventHandlers.NONE);
    Mockito.when(mockBuildContext.getApplicationLayersCache()).thenReturn(cache);
  }
Lists the files in the {@code resourcePath} resources directory and creates a {@link
FileEntriesLayer} with entries from those files.
jib-core/src/test/java/com/google/cloud/tools/jib/builder/steps/BuildAndCacheApplicationLayerStepTest.java