### Question:
LazyArray implements LazyMap<Integer, T> { @Deprecated @Override public Optional<T> get(Integer key) { int k = key.intValue(); return get(k); }  void forEach(IntObjectBiConsumer<T> action); @Deprecated @Override void forEach(BiConsumer<Integer, T> action); @Deprecated @Override Optional<T> get(Integer key); Optional<T> get(int id); @Deprecated @Override T getOrCreate(Integer key); T getOrCreate(int id); int size();  }### Answer:
@Test(expected = IndexOutOfBoundsException.class) public void testGetElementOutOfBounds() { LazyMap<Integer, String> array = create(() -> null, 3); array.get(4); fail(); }