Code example for SortedSet

Methods: iterator

0
		list.add(one);
		list.add(two);
		list.add(three);
		list.add(two);
 
		iter = dynamicSortedSet.iterator();
	} 
 
	protected void tearDown() throws Exception { 
		dynamicSortedSet = null;
		list = null;
		one = null;
		two = null;
		three = null;
		iter = null;
	} 
 
	public void testIteratingWhileAdding() { 
		assertFalse(iter.hasNext());
 
		assertTrue(dynamicSortedSet.add(two));