### Question:
LayerEntriesSelector { @VisibleForTesting static List<LayerEntryTemplate> toSortedJsonTemplates(List<FileEntry> layerEntries) throws IOException { List<LayerEntryTemplate> jsonTemplates = new ArrayList<>(); for (FileEntry entry : layerEntries) { jsonTemplates.add(new LayerEntryTemplate(entry)); } Collections.sort(jsonTemplates); return jsonTemplates; } private  LayerEntriesSelector();   }### Answer:
@Test public void testToSortedJsonTemplates() throws IOException { Assert.assertEquals( toLayerEntryTemplates(inOrderLayerEntries), LayerEntriesSelector.toSortedJsonTemplates(outOfOrderLayerEntries)); }