@Override
    public void clear() {
        for(Iterator<E> iter = this.iterator(); iter.hasNext(); ) {
            iter.next();
            iter.remove();
        }
    }
@Test
    public void testClear() {
        Collection<Object> c = new Collection<>();
        c.add(new Object());
        c.clear();
        assertTrue(c.isEmpty());
    }