public void testRemoveFromIterator(){
  final Range range=createRange(1,5);
  try {
    final Iterator iter=range.iterator();
    iter.remove();
    fail("successfully removed an element using an iterator");
  }
 catch (  UnsupportedOperationException e) {
    assertTrue("expected exception thrown",true);
  }
}

public void testRemoveFromIterator ( ) { final Range range = createRange ( 1 , 5 ) ; try { final Iterator iter = range . iterator ( ) ; iter . remove ( ) ; fail ( "successfully removed an element using an iterator" ) ; } catch ( UnsupportedOperationException e ) { assertTrue ( "expected exception thrown" , true ) ; } }
tests removing an element from the range using an iterator ( not supported ) .
