BigInteger expectation = BigInteger.ZERO;
for (int i = 0; i < values.length; i++) {
expectation = expectation.add(values[i].value);
}
expectation = expectation.divide(BigInteger.valueOf(values.length));
Aggregation<String, BigInteger, BigInteger> aggregation = Aggregations.bigIntegerAvg();
BigInteger result = testAvgWithExtractor(values, aggregation);
assertEquals(expectation, result);
}