@Test
void testCreateFromKeysWithFunction() {

    ImmutableList<Integer> keys = ImmutableList.of(1, 2, 3, 4);
    ImmutableMap<Integer, Integer> expected = ImmutableMap.of(
            1, 1,
            2, 4,
            3, 9,
            4, 16);
    ImmutableMap<Integer, Integer> actual = ImmutableMapFactory.createFromKeys(keys, (key) -> key * key);
    Assertions.assertEquals(expected, actual);
}