### Question:
ListOps { static <T> List<T> filter(List<T> list, Predicate<T> predicate) { throw new UnsupportedOperationException("Delete this statement and write your own implementation."); } private  ListOps();   }### Answer:
@Ignore("Remove to run test") @Test public void testFilteringEmptyList() { assertEquals( Collections.emptyList(), ListOps.filter(Collections.<Integer>emptyList(), integer -> integer % 2 == 1) ); }
@Ignore("Remove to run test") @Test public void testFilteringNonEmptyList() { assertEquals( Arrays.asList(1, 3, 5), ListOps.filter(Arrays.asList(1, 2, 3, 5), integer -> integer % 2 == 1) ); }