### Question:
LinkedListIndexedCollection extends Collection { public Object get(int index) { requireValidIndex(index); return findNodeByIndex(index).value; } 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 testGetWithNegativeIndex() { assertThrows(IndexOutOfBoundsException.class, () -> createCollectionWithNElements(5).get(-1)); }
@Test void testGetWithSizeAsIndex() { assertThrows(IndexOutOfBoundsException.class, () -> createCollectionWithNElements(5).get(5)); }