@Test
public void testHandleGridForDataValueSetEmpty()
{

    Grid grid = new ListGrid();
    DataQueryParams params = DataQueryParams.newBuilder().
        addDimension( new BaseDimensionalObject( DATA_X_DIM_ID, DimensionType.DATA_X, Lists.newArrayList() ) )
        .build();
    grid.addHeader( new GridHeader( DimensionalObject.DATA_X_DIM_ID ) );
    grid.addHeader( new GridHeader( DimensionalObject.ORGUNIT_DIM_ID ) );
    grid.addHeader( new GridHeader( DimensionalObject.PERIOD_DIM_ID ) );
    grid.addHeader( new GridHeader( VALUE_ID, VALUE_HEADER_NAME, ValueType.NUMBER, Double.class.getName(), false, false ) );
    assertEquals( 4, grid.getHeaders().size() );
    assertEquals( 0, grid.getWidth() );
    assertEquals( 0, grid.getHeight() );
    AnalyticsUtils.handleGridForDataValueSet( params, grid );
    assertEquals( 6, grid.getHeaders().size() );
    assertEquals( 0, grid.getWidth() );
    assertEquals( 0, grid.getHeight() );
}