private List<Layer> buildFakeLayersToCache()
      throws LayerPropertyNotFoundException, IOException, CacheCorruptedException {
    List<Layer> applicationLayers = new ArrayList<>();

    ImmutableList<BuildAndCacheApplicationLayerStep> buildAndCacheApplicationLayerSteps =
        BuildAndCacheApplicationLayerStep.makeList(
            mockBuildContext,
            ProgressEventDispatcher.newRoot(EventHandlers.NONE, "ignored", 1).newChildProducer());

    for (BuildAndCacheApplicationLayerStep buildAndCacheApplicationLayerStep :
        buildAndCacheApplicationLayerSteps) {
      applicationLayers.add(buildAndCacheApplicationLayerStep.call());
    }

    return applicationLayers;
  }
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