@Test
public void testToMap2() {

    CheckedIterator<String, RuntimeException> iterator;
    iterator = create("READ", "WRITE");
    assertEquals(ImmutableMap.of(AccessMode.READ, "hello", AccessMode.WRITE, "hello"), iterator.toMap(Enums.stringConverter(AccessMode.class), o -> "hello"));
}