ThirtyEThreeSixtyISDA extends ThirtyThreeSixtyTypeDayCount { @Override public double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final LocalDate nextCouponDate, final double coupon, final double paymentsPerYear) { throw new NotImplementedException("Need to know whether the second date is the maturity"); }  @Override double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate); @Override double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final LocalDate nextCouponDate, final double coupon, final double paymentsPerYear); double getAccruedInterest(final ZonedDateTime previousCouponDate, final ZonedDateTime date, final double coupon, final boolean isMaturity); double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final double coupon, final boolean isMaturity); double getDayCountFraction(final ZonedDateTime firstDate, final ZonedDateTime secondDate, final boolean isMaturity); double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate, final boolean isMaturity); @Override String getName();  }
@Test(expectedExceptions = NotImplementedException.class) public void testNoMaturityValue1() { DC.getAccruedInterest(D1, D2, D3, COUPON, PAYMENTS); }
@Test(expectedExceptions = NotImplementedException.class) public void testNoMaturityValue3() { DC.getAccruedInterest(D4, D5, D6, COUPON, PAYMENTS); }