@Test
public void shouldCreatePairsByMinOfMaximumSumOfPairs() throws Exception {

    List<SimpleEntry<Integer, Integer>> pairs = Problem01.pairs(new int[]{1, 9, 3, 5});
    assertThat(pairs, contains(new SimpleEntry<>(1, 9), new SimpleEntry<>(3, 5)));
}