### Question:
LinkedListIndexedCollection extends Collection { @Override public int size() { return size; } LinkedListIndexedCollection();  LinkedListIndexedCollection(Collection other); @Override int size(); @Override boolean contains(Object value); @Override boolean remove(Object value); @Override Object[] toArray(); @Override void forEach(Processor processor); @Override void add(Object value); Object get(int index); @Override void clear(); void insert(Object value, int position); int indexOf(Object value); void remove(int index); @Override String toString(); static final int VALUE_NOT_FOUND_RETURN_VALUE; }### Answer:
@Test void testSizeWithEmptyCollection() { assertEquals(0, createCollectionWithNElements(0).size()); }
@Test void testSizeWithNonEmptyCollection() { assertEquals(5, createCollectionWithNElements(5).size()); }
@Test void testAddAllWithEmptyCollection() { LinkedListIndexedCollection collection = createCollectionWithNElements(5); collection.addAll(createCollectionWithNElements(0)); assertEquals(5, collection.size()); }
@Test void testAddAllWithNonEmptyCollection() { LinkedListIndexedCollection collection = createCollectionWithNElements(5); collection.addAll(createCollectionWithNElements(5)); assertEquals(10, collection.size()); }