@Test
public void testGetUidMapIsSchemeCodeCompositeObject()
{

    Program prA = new Program();
    prA.setUid( "P123456789A" );
    prA.setCode( "PCodeA" );
    DataElement deA = new DataElement( "NameA" );
    DataElement deB = new DataElement( "NameB" );
    deA.setUid( "D123456789A" );
    deB.setUid( "D123456789B" );
    deA.setCode( "DCodeA" );
    deB.setCode( "DCodeB" );
    ProgramDataElementDimensionItem pdeA = new ProgramDataElementDimensionItem( prA, deA );
    ProgramDataElementDimensionItem pdeB = new ProgramDataElementDimensionItem( prA, deB );
    List<ProgramDataElementDimensionItem> elements = Lists.newArrayList( pdeA, pdeB );
    Map<String, String> map = DimensionalObjectUtils.getDimensionItemIdSchemeMap( elements, IdScheme.CODE );
    assertEquals( 2, map.size() );
    assertEquals( "PCodeA.DCodeA", map.get( "P123456789A.D123456789A" ) );
    assertEquals( "PCodeA.DCodeB", map.get( "P123456789A.D123456789B" ) );
}