### Question:
ScenarioMarketDataBox implements ImmutableBean, MarketDataBox<T>, Serializable { @Override public Class<?> getMarketDataType() { return value.get(0).getClass(); } private  ScenarioMarketDataBox(
      ScenarioArray<T> value); static ScenarioMarketDataBox<T> of(ScenarioArray<T> value); @SafeVarargs static ScenarioMarketDataBox<T> of(T... values); static ScenarioMarketDataBox<T> of(List<T> values); @Override T getSingleValue(); @Override ScenarioArray<T> getScenarioValue(); @Override T getValue(int scenarioIndex); @Override boolean isSingleValue(); @Override int getScenarioCount(); @Override Class<?> getMarketDataType(); @Override MarketDataBox<R> map(Function<T, R> fn); @Override MarketDataBox<R> mapWithIndex(int scenarioCount, ObjIntFunction<T, R> fn); @Override MarketDataBox<R> combineWith(MarketDataBox<U> other, BiFunction<T, U, R> fn); @Override Stream<T> stream(); @SuppressWarnings("rawtypes") static ScenarioMarketDataBox.Meta meta(); @SuppressWarnings("unchecked") static ScenarioMarketDataBox.Meta<R> metaScenarioMarketDataBox(Class<R> cls); @SuppressWarnings("unchecked") @Override ScenarioMarketDataBox.Meta<T> metaBean(); ScenarioArray<T> getValue(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void getMarketDataType() { MarketDataBox<Integer> box = MarketDataBox.ofScenarioValues(27, 28, 29); assertThat(box.getMarketDataType()).isEqualTo(Integer.class); }