public void testIteratorRemove(){
  try {
    final Iterator iterator=range.iterator();
    iterator.remove();
    fail("removed via iterator");
  }
 catch (  IllegalStateException e) {
    assertTrue("expected exception thrown",true);
  }
}

public void testIteratorRemove ( ) { try { final Iterator iterator = range . iterator ( ) ; iterator . remove ( ) ; fail ( "removed via iterator" ) ; } catch ( IllegalStateException e ) { assertTrue ( "expected exception thrown" , true ) ; } }
tests removing via an iterator .
