ThirtyEThreeSixtyISDA extends ThirtyThreeSixtyTypeDayCount { @Override public double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate) { 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 testNoMaturityValue2() { DC.getDayCountFraction(D1, D2); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullFirstDate1() { DC.getDayCountFraction(null, D2, true); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullSecondDate1() { DC.getDayCountFraction(D1, null, true); }
@Test(expectedExceptions = OpenGammaRuntimeException.class) public void testWrongOrder1() { DC.getDayCountFraction(D2, D1, true); }
@Test(expectedExceptions = NotImplementedException.class) public void testNoMaturityValue4() { DC.getDayCountFraction(D4, D5); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullFirstDate2() { DC.getDayCountFraction(null, D5, true); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullSecondDate2() { DC.getDayCountFraction(D4, null, true); }
@Test(expectedExceptions = OpenGammaRuntimeException.class) public void testWrongOrder2() { DC.getDayCountFraction(D5, D4, true); }