@Test
public void testDeleteVisualization()
{

    Visualization visualization = createVisualization( 'A' );
    visualizationService.save( visualization );
    dashboardItem.setVisualization( visualization );
    dashboardService.saveDashboard( dashboard );
    assertEquals(1, dashboardService.getVisualizationDashboardItems( visualization ).size() );
    assertEquals( 1, dashboard.getItemCount() );
    visualizationService.delete( visualization );
    assertEquals(0, dashboardService.getVisualizationDashboardItems( visualization ).size() );
    assertEquals( 0, dashboard.getItemCount() );
}