@Test
public void verifyFromAggregationType()
{

    assertAggregationType( fromAggregationType( AVERAGE_SUM_ORG_UNIT ), SUM, AVERAGE );
    assertAggregationType( fromAggregationType( LAST ), SUM, LAST );
    assertAggregationType( fromAggregationType( LAST_AVERAGE_ORG_UNIT ), AVERAGE, LAST );
    assertAggregationType( fromAggregationType( FIRST ), SUM, FIRST );
    assertAggregationType( fromAggregationType( FIRST_AVERAGE_ORG_UNIT ), AVERAGE, FIRST );
    assertAggregationType( fromAggregationType( SUM ), SUM, SUM );
    assertAggregationType( fromAggregationType( LAST_IN_PERIOD ), SUM, LAST_IN_PERIOD );
    assertAggregationType( fromAggregationType( LAST_IN_PERIOD_AVERAGE_ORG_UNIT ), AVERAGE, LAST_IN_PERIOD );
}