@Test
void onlyOne() {

    List<Integer> list = Arrays.asList(1, 2, 3, 4);
    Optional<Integer> result = list.stream().filter(i -> i > 3).reduce(StreamHelper.onlyOne());
    assertEquals((Integer) 4, result.get());
}