BusinessTwoFiveTwo extends StatelessDayCount { @Override public double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final LocalDate nextCouponDate, final double coupon, final double paymentsPerYear) { throw new UnsupportedOperationException(); }  @Override double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate); @Override double getDayCountFraction(final ZonedDateTime firstDate, final ZonedDateTime secondDate); @Override double getDayCountFraction(final LocalDate firstDate, final LocalDate secondDate, final Calendar calendar); @Override double getDayCountFraction(final ZonedDateTime firstDate, final ZonedDateTime secondDate, final Calendar calendar); @Override double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final LocalDate nextCouponDate, final double coupon, final double paymentsPerYear); @Override String getName();  }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testAccruedInterest() { DC.getAccruedInterest(D4, D5, D6, COUPON, PAYMENTS); }