GreekDataBundle { public Map<UnderlyingType, Double> getUnderlyingData() { return _underlyingData; } GreekDataBundle(final GreekResultCollection greekValues, final Map<UnderlyingType, Double> underlyingData, final OptionTradeData tradeData); OptionTradeData getOptionTradeData(); GreekResultCollection getGreekResults(); Map<UnderlyingType, Double> getUnderlyingData(); double getUnderlyingDataForType(final UnderlyingType type); Double getGreekResultForGreek(final Greek greek); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testGetUnderlyingData() { DATA.getUnderlyingDataForType(UnderlyingType.BOND_YIELD); }