void () { doTest("import java.util.*;" + "abstract class MyIterator<T> implements ListIterator<T> {" + " private ListIterator<T> iterator;" + " MyIterator(ListIterator<T> iterator) {" + " this.iterator = iterator;" + " }" + " public boolean hasNext() {" + " return /*'Iterator.hasNext()' contains call to 'previous()'*/previous/**/() != null;" + " }" + " public boolean hasPrevious() {" + " return this./*'Iterator.hasPrevious()' contains call to 'previous()'*/previous/**/() != null;" + " }" + " public T next() {" + " return iterator.next();" + " }" + " public T previous() {" + " return iterator.previous();" + " }" + "}"); }