RangeSet extends AbstractSet<Long> implements Set<Long> { @Override public void clear() { map.clear(); size = 0; }  @Override int size(); @Override boolean contains(Object o); @Override Iterator<Long> iterator(); @Override boolean add(Long aLong); @Override boolean remove(Object o); @Override boolean removeAll(Collection<?> c); @Override void clear();  }
@Test(groups = "fast") public void testClear() throws Exception { Assert.assertTrue(set.isEmpty()); Assert.assertEquals(set.size(), 0); Assert.assertTrue(set.addAll(Arrays.asList(0L, 2L, 3L, 5L, 6L, 8L, 9L, 10L))); Assert.assertEquals(set.size(), 8); set.clear(); Assert.assertTrue(set.isEmpty()); Assert.assertEquals(set.size(), 0); }