@Test
public void testMap() {

    final AFunction1NoThrow<String, Integer> len = new AFunction1NoThrow<String, Integer>() {
        @Override public Integer apply(String param) {
            return param.length();
        }
    };
    assertEquals(Arrays.<Integer>asList(), ACollectionHelper.map (Arrays.<String>asList (), len));
    assertEquals(Arrays.asList(1), ACollectionHelper.map (Arrays.asList ("a"), len));
    assertEquals(Arrays.asList(2, 1, 3), ACollectionHelper.map (Arrays.asList ("ab", "c", "def"), len));
}