@Test
void testParseAndFilter() {

    String toParse = "A:1;B:2;C:3;D:4";
    ImmutableMap<String, Integer> parsed = ImmutableMapFactory.parseAndFilter(
            toParse,
            s -> s,
            Integer::parseInt,
            (key, value) -> !key.equals("A") && value < 4);
    Assertions.assertEquals(ImmutableMap.of("B", 2, "C", 3), parsed);
}