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