private static List<AbsoluteUnixPath> getExtractionPaths(
      BuildContext buildContext, String layerName) {
    return buildContext.getLayerConfigurations().stream()
        .filter(layerConfiguration -> layerConfiguration.getName().equals(layerName))
        .findFirst()
        .map(
            layerConfiguration ->
                layerConfiguration.getEntries().stream()
                    .map(FileEntry::getExtractionPath)
                    .collect(Collectors.toList()))
        .orElse(ImmutableList.of());
  }
Gets the extraction paths in the specified layer of a give {@link BuildContext}.
jib-core/src/test/java/com/google/cloud/tools/jib/api/JavaContainerBuilderTest.java