CurveInstrumentConfig { public String[] getExposuresForInstrument(final StripInstrumentType instrumentType) { final String[] exposures = _exposures.get(instrumentType); if (exposures == null) { throw new IllegalArgumentException("Could not get exposures for " + instrumentType); } return exposures; } CurveInstrumentConfig();  CurveInstrumentConfig(final Map<StripInstrumentType, String[]> exposures); Map<StripInstrumentType, String[]> getExposures(); String[] getExposuresForInstrument(final StripInstrumentType instrumentType); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testWrongStrip() { FUNDING_CONFIG.getExposuresForInstrument(StripInstrumentType.BANKERS_ACCEPTANCE); }