@Test
public void testDeleteMap()
{

    Map map = new Map();
    map.setName( "A" );
    mappingService.addMap( map );
    dashboardItem.setMap( map );
    dashboardService.saveDashboard( dashboard );
    assertEquals(1, dashboardService.getMapDashboardItems( map ).size() );
    assertEquals( 1, dashboard.getItemCount() );
    mappingService.deleteMap( map );
    assertEquals(0, dashboardService.getMapDashboardItems( map ).size() );
    assertEquals( 0, dashboard.getItemCount() );
}