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

		myList.add(1);
		myList.add(2);
		
		myList.reset();
		assertTrue(myList.hasNext());
		int x = myList.next();
		assertTrue(x == 1 || x == 2);
		assertTrue(myList.hasNext());
		myList.remove(x);
		
		assertTrue(myList.hasNext());
		int y = myList.next();
		assertTrue(y != x && (y == 1 || y == 2));
		assertFalse(myList.hasNext());
		
		myList.reset();
		assertTrue(myList.hasNext());
		int z = myList.next();
		assertTrue(z != x && (z == 1 || z == 2));
		assertFalse(myList.hasNext());
	}