@Test
public void testMapBy() {

    List<Employee> list = Lists.list(new Employee("Bob"), new Employee("Sally"));
    List<HRObject> wrap = (List<HRObject>) Lists.mapBy(list, new Object() {
       HRObject hr(Employee e) {return new HRObject(e);}
    });
    boolean ok = wrap.get(0).name().equals("Bob") || die();
    ok &= wrap.get(1).name().equals("Sally") || die();
}