### Question:
RemoveHandlerIterator extends PrefetchingIterator<N> { @Override protected boolean isRemoveSupported() { return handler.isSupported(); } RemoveHandlerIterator(T tree, IteratorRemoveHandler<E, N, T> handler);   }### Answer:
@Test public void supported0() { when(handler.isSupported()).thenReturn(true); final TestIterator iterator = new TestIterator(tree, handler); assertTrue(iterator.isRemoveSupported()); }
@Test public void supported1() { when(handler.isSupported()).thenReturn(false); final TestIterator iterator = new TestIterator(tree, handler); assertFalse(iterator.isRemoveSupported()); }