}
@Test(expectedExceptions = OpenGammaRuntimeException.class)
public void testWrongUnderlyingConventionForFXForward() {
final ExternalId marketDataId = ExternalId.of(SCHEME, "Data");
final SnapshotDataBundle marketValues = new SnapshotDataBundle();
final double forward = 1.5;
marketValues.setDataPoint(marketDataId, forward);
final FXForwardAndSwapConvention fxForward = new FXForwardAndSwapConvention("FX Forward", ExternalIdBundle.of(ExternalId.of(SCHEME, "FX Forward")), LIBOR_1M_ID, MODIFIED_FOLLOWING, false, US);
final FXForwardNode node = new FXForwardNode(Tenor.of(Period.ZERO), Tenor.ONE_YEAR, ExternalId.of(SCHEME, "FX Forward"), Currency.USD, Currency.CAD, "Mapper");
final Map<ExternalId, Convention> conventions = new HashMap<>();
conventions.put(FX_FORWARD_ID, fxForward);
conventions.put(LIBOR_1M_ID, LIBOR_1M);