Mean { public BigDecimal of(Long... input) { return of(Arrays.asList(input ) ); }  Mean setScale(int scale); Mean setRoundingMode(RoundingMode roundingMode); BigDecimal of(Long... input); BigDecimal of(List<Long> values);  }
@Test(expected = IllegalArgumentException.class) public void testMeanFailure() throws Exception { new Mean().of(); }
@Test(expected = IllegalArgumentException.class) public void testMeanFailureWithList() throws Exception { new Mean().of(Lists.newArrayList()); }
@Test public void testMean() throws Exception { assertEquals( 50, new Mean().of( 0L, 100L ).intValue() ); assertEquals( 50, new Mean().of( 50L, 50L ).intValue() ); }