### Question:
I18nedIdentificateSorter { public List<T> sortAscending(List<T> originalGroup, final Resources resources) { ArrayList<T> listCopy = new ArrayList<>(originalGroup); Collections.sort(listCopy, new Comparator<T>() { @Override public int compare(T id1, T id2) { String firstGroupName = getString(resources, id1); String secondGroupName = getString(resources, id2); return firstGroupName.compareToIgnoreCase(secondGroupName); } }); return listCopy; }  List<T> sortAscending(List<T> originalGroup, final Resources resources);  }### Answer:
@Test public void worksOnEmptyLists() throws Exception { I18nedIdentificateSorter sorter = new I18nedIdentificateSorter(); List<Identifier> originalGroup = Collections.emptyList(); List<Identifier> identificates = sorter.sortAscending(originalGroup, null); assertThat(identificates.size(), is(0)); }