@Test
public void testMap() {

    List<String> names = Arrays.asList("joe", "carol", "anne-marie");
    List<Integer> lengths = ListFunctions.map(names, new GetLengths());
    assertEquals(lengths, Arrays.asList(3, 5, 10));
}