@Test
	public void testRemoveBeforeQuery() {
		Bag<Integer> myList = new Bag<Integer>();		

		myList.add(1);
		myList.add(2);
		
		myList.reset();
		assertTrue(myList.hasNext());
		int x = myList.next();
		if (x == 1) {
			myList.remove(2);
		} else if (x == 2){
			myList.remove(1);
		} else {
			fail();
		}
		assertFalse(myList.hasNext());
		
		myList.reset();
		assertTrue(myList.hasNext());
		int z = myList.next();
		assertTrue(z == x);
		assertFalse(myList.hasNext());
	}