@Test
    public void testToIdentityMap() {
        LocalDate v1_0 = LocalDate.of(1996, 1, 23);
        LocalDate v1_1 = LocalDate.of(1997, 2, 19);
        LocalDate v1_2 = LocalDate.of(1998, 12, 8);
        Map<Integer, LocalDate> expected = new HashMap<>();
        expected.put(v1_0.getYear(), v1_0);
        expected.put(v1_1.getYear(), v1_1);
        expected.put(v1_2.getYear(), v1_2);

        assertEquals(expected, Seq.of(v1_0, v1_1, v1_2).toMap(LocalDate::getYear));
    }
@author Lukas Eder
@author Roman Tkalenko
jOOL/src/test/java/org/jooq/lambda/SeqTest.java