Statistics { protected abstract void accumulateStats(Statistics stats);  abstract void addSample(double sample); abstract Object getResult(); abstract Long getNumSamples(); final static String STATS_PROPERTY; }
@Test(expected = IllegalArgumentException.class) public void testMeanException() { meanObj.accumulateStats(sumObj); }
@Test(expected = IllegalArgumentException.class) public void testSumException() { sumObj.accumulateStats(meanObj); }
@Test(expected = IllegalArgumentException.class) public void testMaxException() { maxObj.accumulateStats(sumObj); }
@Test(expected = IllegalArgumentException.class) public void testMinException() { minObj.accumulateStats(sumObj); }
@Test(expected = IllegalArgumentException.class) public void testExtremaException() { extremaObj.accumulateStats(sumObj); }
@Test(expected = IllegalArgumentException.class) public void testVarianceException() { varianceObj.accumulateStats(sumObj); }
@Test(expected = IllegalArgumentException.class) public void testDevStdException() { devstdObj.accumulateStats(sumObj); }
@Test(expected = UnsupportedOperationException.class) public void testHistException() { histogramObj.accumulateStats(sumObj); }
@Test(expected = UnsupportedOperationException.class) public void testModeException() { modeObj.accumulateStats(sumObj); }
@Test(expected = UnsupportedOperationException.class) public void testMedianException() { medianObj.accumulateStats(sumObj); }