GreekDataBundle { public Double getGreekResultForGreek(final Greek greek) { if (_greekValues.contains(greek)) { return _greekValues.get(greek); } throw new IllegalArgumentException("Greek result collection did not contain a value for " + greek); } 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 testGetRiskFactorResults() { DATA.getGreekResultForGreek(Greek.GAMMA); }