@Test
public void testGetDimensionItemNameMap()
{

    DataElement deA = createDataElement( 'A' );
    Indicator inA = createIndicator( 'A', null );
    DataSet dsA = createDataSet( 'A' );
    OrganisationUnit ouA = createOrganisationUnit( 'A' );
    OrganisationUnit ouB = createOrganisationUnit( 'B' );
    DimensionalObject dx = new BaseDimensionalObject( DimensionalObject.DATA_X_DIM_ID, DimensionType.DATA_X, DimensionalObjectUtils.getList( deA, inA, dsA ) );
    DimensionalObject ou = new BaseDimensionalObject( DimensionalObject.ORGUNIT_DIM_ID, DimensionType.ORGANISATION_UNIT, Lists.newArrayList( ouA, ouB ) );
    DataQueryParams params = DataQueryParams.newBuilder()
        .addDimension( dx )
        .addDimension( ou )
        .withDisplayProperty( DisplayProperty.NAME )
        .build();
    Map<String, String> map = AnalyticsUtils.getDimensionItemNameMap( params );
    assertEquals( map.get( deA.getDimensionItem() ), deA.getDisplayName() );
    assertEquals( map.get( inA.getDimensionItem() ), inA.getDisplayName() );
    assertEquals( map.get( dsA.getDimensionItem() ), dsA.getDisplayName() );
    assertEquals( map.get( ouA.getDimensionItem() ), ouA.getDisplayName() );
    assertEquals( map.get( ouB.getDimensionItem() ), ouB.getDisplayName() );
}