@Test
public void testGetDataElementOperandIdSchemeCodeMap()
{

    DataElement deA = new DataElement( "NameA" );
    DataElement deB = new DataElement( "NameB" );
    deA.setUid( "D123456789A" );
    deB.setUid( "D123456789B" );
    deA.setCode( "DCodeA" );
    deB.setCode( "DCodeB" );
    CategoryOptionCombo ocA = new CategoryOptionCombo();
    ocA.setUid( "C123456789A" );
    ocA.setCode( "CCodeA" );
    DataElementOperand opA = new DataElementOperand( deA, ocA );
    DataElementOperand opB = new DataElementOperand( deB, ocA );
    List<DataElementOperand> operands = Lists.newArrayList( opA, opB );
    Map<String, String> map = DimensionalObjectUtils.getDataElementOperandIdSchemeMap( operands, IdScheme.CODE );
    assertEquals( 3, map.size() );
    assertEquals( "DCodeA", map.get( "D123456789A" ) );
    assertEquals( "DCodeB", map.get( "D123456789B" ) );
    assertEquals( "CCodeA", map.get( "C123456789A" ) );
}