@Test
public void testGetUidMapIsSchemeAttribute()
{

    DataElement deA = new DataElement( "DataElementA" );
    DataElement deB = new DataElement( "DataElementB" );
    DataElement deC = new DataElement( "DataElementC" );
    deA.setUid( "A123456789A" );
    deB.setUid( "A123456789B" );
    deC.setUid( "A123456789C" );
    Attribute atA = new Attribute( "AttributeA", ValueType.INTEGER );
    atA.setUid( "ATTR123456A" );
    AttributeValue avA = new AttributeValue( "AttributeValueA", atA );
    AttributeValue avB = new AttributeValue( "AttributeValueB", atA );
    deA.setAttributeValues( Sets.newHashSet( avA ) );
    deB.setAttributeValues( Sets.newHashSet( avB ) );
    List<DataElement> elements = Lists.newArrayList( deA, deB, deC );
    String scheme = IdScheme.ATTR_ID_SCHEME_PREFIX + atA.getUid();
    IdScheme idScheme = IdScheme.from( scheme );
    Map<String, String> map = DimensionalObjectUtils.getDimensionItemIdSchemeMap( elements, idScheme );
    assertEquals( 3, map.size() );
    assertEquals( "AttributeValueA", map.get( "A123456789A" ) );
    assertEquals( "AttributeValueB", map.get( "A123456789B" ) );
    assertEquals( null, map.get( "A123456789C" ) );
}