@Test
public void testRemoveDataDimensionItem()
{

    DataElement deA = new DataElement();
    DataElement deB = new DataElement();
    deA.setAutoFields();
    deB.setAutoFields();
    MapView mv = new MapView( MapView.LAYER_THEMATIC1 );
    mv.addDataDimensionItem( deA );
    mv.addDataDimensionItem( deB );
    assertEquals( 2, mv.getDataDimensionItems().size() );
    mv.removeDataDimensionItem( deA );
    assertEquals( 1, mv.getDataDimensionItems().size() );
    assertEquals( deB, mv.getDataDimensionItems().get( 0 ).getDataElement() );
}