@SuppressWarnings("deprecation")
public void toDerivativeDeprecated() {
final String krw = "Discounting KRW";
final String usd = "Discounting USD";
final String[] curveNames = new String[] {krw, usd};
final ForexNonDeliverableOption ndoConverted = NDO_DEFINITION.toDerivative(REFERENCE_DATE, curveNames);
final ForexNonDeliverableOption ndoExpected = new ForexNonDeliverableOption(NDF_DEFINITION.toDerivative(REFERENCE_DATE, curveNames), IS_CALL, IS_LONG);
assertEquals("Forex NDO - toDerivatives", ndoExpected, ndoConverted);
}