final double t = 7 / 365.0;
final double tradeTime = 2.0 / 365.0;
final double yearFrac = 5.0 / 360.0;
Cash cash = new Cash(CUR, tradeTime, t, 1, 0, yearFrac, FIVE_PC_CURVE_NAME);
final double rate = cash.accept(PRC, CURVES);
cash = new Cash(CUR, tradeTime, t, 1, rate, yearFrac, FIVE_PC_CURVE_NAME);
assertEquals(0.0, cash.accept(PVC, CURVES), 1e-12);
}
@Test