@Test
void testUniqueAndSort() throws Exception {

  final TPMMSConfiguration configuration = getConfiguration();
  final List<String> items = randomized(withDuplicates(asList("4", "3", "2", "1")));
  createFixture(items);
  new TPMMS(configuration).uniqueAndSort(toProcess);
  final List<String> actual = Files.lines(toProcess).collect(toList());
  assertThat(actual).as("Input: " + items).isEqualTo(asList("1", "2", "3", "4"));
}