### Question:
InPlaceTransform implements BinaryProcedure<ListIterator<T>, Function<? super T, ? extends T>> { public void run(ListIterator<T> left, Function<? super T, ? extends T> right) { while (left.hasNext()) { left.set(right.evaluate(left.next())); } }  void run(ListIterator<T> left, Function<? super T, ? extends T> right); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static InPlaceTransform<Object> instance();  }### Answer:
@Test public void testTransform() { new InPlaceTransform<Integer>().run(list.listIterator(), new Function<Integer, Integer>() { public Integer evaluate(Integer obj) { return Integer.valueOf(obj * 2); } }); assertEquals(doubled, list); }