@Test
 public void equalHash() {
   assertTrue(METHOD.equals(METHOD));
   InterestRateFutureSecurityHullWhiteMethod other =
       new InterestRateFutureSecurityHullWhiteMethod(MODEL_PARAMETERS);
   assertTrue(METHOD.equals(other));
   assertTrue(METHOD.hashCode() == other.hashCode());
   InterestRateFutureSecurityHullWhiteMethod modifiedMethod;
   HullWhiteOneFactorPiecewiseConstantParameters modifiedParameter =
       new HullWhiteOneFactorPiecewiseConstantParameters(
           MEAN_REVERSION * 2, VOLATILITY, VOLATILITY_TIME);
   modifiedMethod = new InterestRateFutureSecurityHullWhiteMethod(modifiedParameter);
   assertFalse(METHOD.equals(modifiedMethod));
   assertFalse(METHOD.equals(CUR));
   assertFalse(METHOD.equals(null));
 }
 @Test
 /** Test the constructors. */
 public void constructor() {
   final InterestRateFutureSecurityHullWhiteMethod methodParameters =
       new InterestRateFutureSecurityHullWhiteMethod(MEAN_REVERSION, VOLATILITY, VOLATILITY_TIME);
   assertTrue(METHOD.equals(methodParameters));
 }