### Question:
ArrayListSimpleCollection implements SimpleCollection<E> { public boolean remove(E element) { return list.remove(element); } ArrayListSimpleCollection();  ArrayListSimpleCollection(Collection<E> initial);  ArrayListSimpleCollection(int initialCapacity); void add(E element); E get(int index); E set(int index, E element); boolean remove(E element); @Override int size(); @Override boolean isEmpty(); @Override Iterator<E> structuralIterator(); @Override Iterator<E> iterator();  }### Answer:
@Test public void remove() { final ArrayListSimpleCollection<String> collection = new ArrayListSimpleCollection<>(); collection.add("a"); assertTrue(collection.remove("a")); assertEquals(0, collection.size()); assertFalse(collection.iterator().hasNext()); assertFalse(collection.structuralIterator().hasNext()); }