void () { final int MAX = 250000; for (int i = 0; i < MAX; i++) { assertTrue(myInstance.add(i)); } for (int i = 0; i < MAX; i++) { assertTrue(myInstance.contains(i)); } assertFalse(myInstance.contains(MAX)); for (int i = 0; i < MAX; i += 2) { assertTrue(myInstance.remove(i)); assertTrue(myInstance.contains(i + 1)); assertFalse(myInstance.contains(i)); } assertEquals(myInstance.size(), MAX / 2); }