@Test
    void collect() {
        assertEquals(ELEMENT, instance.collect(Collectors.joining()));

        assertThrows(IllegalStateException.class, () -> instance.collect(Collectors.joining()));
    }
Test of mapToInt method, of class SingletonStream.
common-parent/singletonstream/src/test/java/com/speedment/common/singletonstream/SingletonStreamTest.java