@Test
public void shouldCreateFunctionFromListToSortedList() {

  final Function<List<String>, List<Integer>> function = functionFromListOf(String.class)
      .map(new StringLength())
      .thenSort(new Comparator<Integer>() {
        @Override
        public int compare(Integer lhs, Integer rhs) {
          return lhs.compareTo(rhs);
        }
      });
  final List<String> inputList = new ArrayList<>(INPUT_LIST);
  assertThat(function.apply(inputList), contains(3, 4, 7, 7));
}