@SuppressWarnings("deprecation")
 @Test
 public void testToDerivativeDeprecated() {
   final String[] names = new String[] {"USD", "EUR"};
   final ForexOptionSingleBarrier derivative = OPTION.toDerivative(DATE, names);
   assertEquals(derivative.getUnderlyingOption(), UNDERLYING.toDerivative(DATE, names));
   assertEquals(derivative.getBarrier(), BARRIER);
 }
 @Test
 public void testToDerivative() {
   final ForexOptionSingleBarrier derivative = OPTION.toDerivative(DATE);
   assertEquals(derivative.getUnderlyingOption(), UNDERLYING.toDerivative(DATE));
   assertEquals(derivative.getBarrier(), BARRIER);
 }