### Question:
QuoteScenarioArray implements ScenarioArray<Double>, ImmutableBean, Serializable { @Override public Double get(int scenarioIndex) { return quotes.get(scenarioIndex); } private  QuoteScenarioArray(
      DoubleArray quotes); static QuoteScenarioArray of(DoubleArray quotes); @Override int getScenarioCount(); @Override Double get(int scenarioIndex); @Override Stream<Double> stream(); static QuoteScenarioArray.Meta meta(); @Override QuoteScenarioArray.Meta metaBean(); DoubleArray getQuotes(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void get() { assertThat(ARRAY.get(0)).isEqualTo(1d); assertThat(ARRAY.get(1)).isEqualTo(2d); assertThat(ARRAY.get(2)).isEqualTo(3d); assertThatExceptionOfType(IndexOutOfBoundsException.class) .isThrownBy(() -> ARRAY.get(-1)); assertThatExceptionOfType(IndexOutOfBoundsException.class) .isThrownBy(() -> ARRAY.get(3)); }