@Test
public void testPopulateAnalyticalProperties()
{

    TrackedEntityAttribute tea = new TrackedEntityAttribute();
    tea.setAutoFields();
    TrackedEntityAttributeDimension tead = new TrackedEntityAttributeDimension( tea, null, "EQ:10" );
    EventChart eventChart = new EventChart();
    eventChart.setAutoFields();
    eventChart.getColumnDimensions().add( tea.getUid() );
    eventChart.getAttributeDimensions().add( tead );
    eventChart.populateAnalyticalProperties();
    assertEquals( 1, eventChart.getColumns().size() );
    DimensionalObject dim = eventChart.getColumns().get( 0 );
    assertNotNull( dim );
    assertEquals( DimensionType.PROGRAM_ATTRIBUTE, dim.getDimensionType() );
    assertEquals( AnalyticsType.EVENT, dim.getAnalyticsType() );
    assertEquals( tead.getFilter(), dim.getFilter() );
}