@Test
public void max() {

    Aggregation<Integer> max = Aggregations.max();
    max.aggregate(1);
    max.aggregate(2);
    max.aggregate(3);
    max.aggregate(4);
    max.aggregate(null);
    double aggregated = max.getAggregated();
    Assert.assertEquals(4, aggregated, DELTA);
    Assert.assertEquals("max", max.getIdentifier());
    max.reset();
}