@Test
public void testMap() throws Exception {

    Collection<Integer> data = Arrays.asList(2, 4, 6);
    Collection<Integer> newData = TransformUtils.map(data, new TransformUtils.Map<Integer>() {
        @Override
        public Integer map(Integer item) {
            return item / 2;
        }
    });
    assertEquals(3, newData.size());
    assertTrue(newData.contains(1));
    assertTrue(newData.contains(2));
    assertTrue(newData.contains(3));
}