InterestRate { public abstract InterestRate fromPeriodic(PeriodicInterestRate periodic); InterestRate(final double rate); double getRate(); abstract double getDiscountFactor(double t); abstract InterestRate fromContinuous(ContinuousInterestRate continuous); abstract double fromContinuousDerivative(ContinuousInterestRate continuous); abstract InterestRate fromPeriodic(PeriodicInterestRate periodic); abstract ContinuousInterestRate toContinuous(); abstract PeriodicInterestRate toPeriodic(int periodsPerYear); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullArgument3() { ANNUAL.fromPeriodic(null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullArgument6() { CONTINUOUS.fromPeriodic(null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullArgument9() { QUARTERLY.fromPeriodic(null); }