### Question:
ListOps { static <T, U> List<U> map(List<T> list, Function<T, U> transform) { throw new UnsupportedOperationException("Delete this statement and write your own implementation."); } private  ListOps();   }### Answer:
@Ignore("Remove to run test") @Test public void testTransformingEmptyList() { assertEquals( Collections.emptyList(), ListOps.map(Collections.<Integer>emptyList(), integer -> integer + 1) ); }
@Ignore("Remove to run test") @Test public void testTransformingNonEmptyList() { assertEquals( Arrays.asList(2, 4, 6, 8), ListOps.map(Arrays.asList(1, 3, 5, 7), integer -> integer + 1) ); }