FlatDayCount extends StatelessDayCount { @Override public double getAccruedInterest(final LocalDate previousCouponDate, final LocalDate date, final LocalDate nextCouponDate, final double coupon, final double paymentsPerYear) { return 0; }  @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); @Override String getName();  }
@Test public void testAccruedInterest() { assertEquals(DC.getAccruedInterest(D1, D2, D2, 0.05, 1), 0, 0); }