### Question:
MutableTomlArray implements TomlArray { @Override public Object get(int index) { return elements.get(index).value; } MutableTomlArray();   MutableTomlArray(boolean definedAsLiteral); @Override int size(); @Override boolean isEmpty(); @Override boolean containsStrings(); @Override boolean containsLongs(); @Override boolean containsDoubles(); @Override boolean containsBooleans(); @Override boolean containsOffsetDateTimes(); @Override boolean containsLocalDateTimes(); @Override boolean containsLocalDates(); @Override boolean containsLocalTimes(); @Override boolean containsArrays(); @Override boolean containsTables(); @Override Object get(int index); @Override TomlPosition inputPositionOf(int index); @Override List<Object> toList();  }### Answer:
@Test void shouldReturnNullForUnknownIndex() { MutableTomlArray array = new MutableTomlArray(); assertThrows(IndexOutOfBoundsException.class, () -> array.get(0)); }