void () { Set<Integer> set = new SmartHashSet<>(); set.add(30); Iterator<Integer> iterator = set.iterator(); assertEquals((int)iterator.next(), 30); assertFalse(iterator.hasNext()); assertFalse(set.isEmpty()); iterator.remove(); assertTrue(set.isEmpty()); }