@Test(expected = IllegalStateException.class)
public void testThrowingMerger() {

    final Map<String, Integer> collected = Stream.of(
            toEntry("one", 1),
            toEntry("one", 2),
            toEntry("three", 3))
            .collect(entriesToMap(throwingMerger()));
}