HullWhiteTwoFactorDataBundle other = new HullWhiteTwoFactorDataBundle(R_CURVE, SIGMA_CURVE_1, SIGMA_CURVE_2, DATE, SPEED_1, SPEED_2, U, F, RHO);
assertEquals(other, DATA);
assertEquals(other.hashCode(), DATA.hashCode());
other = new HullWhiteTwoFactorDataBundle(YieldCurve.from(ConstantDoublesCurve.from(R - 0.01)), SIGMA_CURVE_1, SIGMA_CURVE_2, DATE, SPEED_1, SPEED_2, U, F, RHO);
assertFalse(other.equals(DATA));
other = new HullWhiteTwoFactorDataBundle(R_CURVE, new VolatilityCurve(ConstantDoublesCurve.from(SIGMA + 0.3)), SIGMA_CURVE_2, DATE, SPEED_1, SPEED_2, U, F, RHO);
assertFalse(other.equals(DATA));
other = new HullWhiteTwoFactorDataBundle(R_CURVE, SIGMA_CURVE_1, new VolatilityCurve(ConstantDoublesCurve.from(SIGMA + 0.1)), DATE, SPEED_1, SPEED_2, U, F, RHO);
assertFalse(other.equals(DATA));
other = new HullWhiteTwoFactorDataBundle(R_CURVE, SIGMA_CURVE_1, SIGMA_CURVE_2, DATE.minusDays(4), SPEED_1, SPEED_2, U, F, RHO);
assertFalse(other.equals(DATA));
other = new HullWhiteTwoFactorDataBundle(R_CURVE, SIGMA_CURVE_1, SIGMA_CURVE_2, DATE, SPEED_1 + 0.1, SPEED_2, U, F, RHO);
assertFalse(other.equals(DATA));