@Test
public void testGetDaysForAvgSumIntAggregation()
{

    List<DimensionalItemObject> dataElements = Lists.newArrayList( deA, deB, deC );
    List<DimensionalItemObject> periods = Lists.newArrayList( peA, peB );
    DataQueryParams params = DataQueryParams.newBuilder()
        .withDataElements( dataElements )
        .withPeriods( periods ).build();
    assertEquals( peA.getDaysInPeriod(), params.getDaysForAvgSumIntAggregation() );
    params = DataQueryParams.newBuilder()
        .withDataElements( dataElements )
        .withFilterPeriods( periods ).build();
    int totalDays = peA.getDaysInPeriod() + peB.getDaysInPeriod();
    assertEquals( totalDays, params.getDaysForAvgSumIntAggregation() );
}