### Question:
DepartmentsSort { public TreeSet<String> reverseOrderSort(String[] departments) { TreeSet<String> sortedDepartments = new TreeSet<>(Comparator.reverseOrder()); sortedDepartments.addAll(naturalOrderSort(departments)); return sortedDepartments; }  Set<String> naturalOrderSort(String[] departments); TreeSet<String> reverseOrderSort(String[] departments);  }### Answer:
@Test public void ifArrayReversOrderSortingThenResultIsReversOrderSortingExpect() { DepartmentsSort testSort = new DepartmentsSort(); Set<String> result = testSort.reverseOrderSort(arrayForSorting); assertThat(result, is(new LinkedHashSet<>(asList(reversOrderSortingExpect)))); }