@Test
  public void testFileOrdering() throws IOException {
    Multimap<String, String> layerPaths = ArrayListMultimap.create();
    layerEntriesDo((layerName, layerEntry) -> layerPaths.put(layerName, layerEntry.getName()));
    for (Collection<String> paths : layerPaths.asMap().values()) {
      List<String> sorted = new ArrayList<>(paths);
      // ReproducibleLayerBuilder sorts by TarArchiveEntry::getName()
      Collections.sort(sorted);
      assertThat(paths).containsExactlyElementsIn(sorted).inOrder();
    }
  }
Verify that created image has explicit directory structures, default timestamps, permissions, and
file orderings.
jib-core/src/integration-test/java/com/google/cloud/tools/jib/api/ReproducibleImageTest.java