@Test
public void testGetCocNameMap()
{

    CategoryCombo ccA = createCategoryCombo( 'A', new Category[0] );
    CategoryCombo ccB = createCategoryCombo( 'B', new Category[0] );
    CategoryOptionCombo cocA = createCategoryOptionCombo( 'A' );
    CategoryOptionCombo cocB = createCategoryOptionCombo( 'B' );
    ccA.getOptionCombos().add( cocA );
    ccB.getOptionCombos().add( cocB );
    DataElement deA = createDataElement( 'A' );
    DataElement deB = createDataElement( 'B' );
    deA.setCategoryCombo( ccA );
    deB.setCategoryCombo( ccB );
    DimensionalObject dx = new BaseDimensionalObject( DimensionalObject.DATA_X_DIM_ID, DimensionType.DATA_X, Lists.newArrayList( deA, deB ) );
    DataQueryParams params = DataQueryParams.newBuilder()
        .addDimension( dx )
        .withDisplayProperty( DisplayProperty.NAME )
        .build();
    Map<String, String> map = AnalyticsUtils.getCocNameMap( params );
    assertEquals( map.get( cocA.getUid() ), cocA.getName() );
    assertEquals( map.get( cocB.getUid() ), cocB.getName() );
}