});
BigDecimal expectation = BigDecimal.ZERO;
for (int i = 0; i < values.length; i++) {
Value<BigDecimal> value = values[i];
expectation = i == 0 ? value.value : expectation.max(value.value);
}
Aggregation<String, BigDecimal, BigDecimal> aggregation = Aggregations.bigDecimalMax();
BigDecimal result = testMaxWithExtractor(values, aggregation);
assertEquals(expectation, result);