### Question:
QuoteScenarioArrayId implements ScenarioMarketDataId<Double, QuoteScenarioArray>, ImmutableBean, Serializable { @Override public QuoteScenarioArray createScenarioValue(MarketDataBox<Double> marketDataBox, int scenarioCount) { return QuoteScenarioArray.of(DoubleArray.of(scenarioCount, i -> marketDataBox.getValue(i))); } private  QuoteScenarioArrayId(
      QuoteId id); static QuoteScenarioArrayId of(StandardId id, FieldName fieldName); static QuoteScenarioArrayId of(QuoteId quoteId); @Override QuoteId getMarketDataId(); @Override Class<QuoteScenarioArray> getScenarioMarketDataType(); @Override QuoteScenarioArray createScenarioValue(MarketDataBox<Double> marketDataBox, int scenarioCount); static QuoteScenarioArrayId.Meta meta(); @Override QuoteScenarioArrayId.Meta metaBean(); QuoteId getId(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void createScenarioValue() { MarketDataBox<Double> box = MarketDataBox.ofScenarioValues(1d, 2d, 3d); QuoteScenarioArray quotesArray = KEY.createScenarioValue(box, 3); assertThat(quotesArray.getQuotes()).isEqualTo(DoubleArray.of(1d, 2d, 3d)); }