public void testIteratorRemove(){
  final LinkedBlockingQueue q=new LinkedBlockingQueue(3);
  q.add(two);
  q.add(one);
  q.add(three);
  Iterator it=q.iterator();
  it.next();
  it.remove();
  it=q.iterator();
  assertSame(it.next(),one);
  assertSame(it.next(),three);
  assertFalse(it.hasNext());
}

public void testIteratorRemove ( ) { final LinkedBlockingQueue q = new LinkedBlockingQueue ( 3 ) ; q . add ( two ) ; q . add ( one ) ; q . add ( three ) ; Iterator it = q . iterator ( ) ; it . next ( ) ; it . remove ( ) ; it = q . iterator ( ) ; assertSame ( it . next ( ) , one ) ; assertSame ( it . next ( ) , three ) ; assertFalse ( it . hasNext ( ) ) ; }
iterator . remove removes current element
