AffineDividends { public int getNumberOfDividends() { return _n; } AffineDividends(final double[] tau, final double[] alpha, final double[] beta); static AffineDividends noDividends(); double[] getTau(); double[] getAlpha(); double[] getBeta(); double getTau(final int index); double getAlpha(final int index); double getBeta(final int index); int getNumberOfDividends(); AffineDividends withTau(final double value, final int index); AffineDividends withAlpha(final double value, final int index); AffineDividends withBeta(final double value, final int index); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void zeroLengthTest() { final AffineDividends div = new AffineDividends(TAU0, ALPHA0, BETA0); assertEquals(0, div.getNumberOfDividends()); }