String curveName1 = "curveName1";
String curveName2 = "curveName2";
String curveName3 = "curveName3";
curve.named(curveName1, curveName2).currencies("USD", "GBP");
MarketDataSelector selector = curve.getSelector();
StructureIdentifier structure1 = StructureIdentifier.of(new YieldCurveKey(Currency.GBP, curveName1));
StructureIdentifier structure2 = StructureIdentifier.of(new YieldCurveKey(Currency.USD, curveName2));
StructureIdentifier structure3 = StructureIdentifier.of(new YieldCurveKey(Currency.AUD, curveName1));
StructureIdentifier structure4 = StructureIdentifier.of(new YieldCurveKey(Currency.USD, curveName3));
assertEquals(selector, selector.findMatchingSelector(structure1, CALC_CONFIG_NAME, _resolver));
assertEquals(selector, selector.findMatchingSelector(structure2, CALC_CONFIG_NAME, _resolver));
assertNull(selector.findMatchingSelector(structure3, CALC_CONFIG_NAME, _resolver));
assertNull(selector.findMatchingSelector(structure4, CALC_CONFIG_NAME, _resolver));
}