@Test
public void testDeleteReport()
{

    Report reportA = new Report();
    Report reportB = new Report();
    reportA.setName( "A" );
    reportB.setName( "B" );
    reportService.saveReport( reportA );
    reportService.saveReport( reportB );
    dashboardItem.getReports().add ( reportA );
    dashboardItem.getReports().add ( reportA ); // Test removing duplicates
    dashboardItem.getReports().add ( reportB );
    dashboardService.saveDashboard( dashboard );
    assertEquals(1, dashboardService.getReportDashboardItems( reportA ).size() );
    assertEquals(1, dashboardService.getReportDashboardItems( reportB ).size() );
    assertEquals( 1, dashboard.getItemCount() );
    reportService.deleteReport( reportA );
    assertEquals(0, dashboardService.getReportDashboardItems( reportA ).size() );
    assertEquals(1, dashboardService.getReportDashboardItems( reportB ).size() );
    assertEquals( 1, dashboard.getItemCount() );
    reportService.deleteReport( reportB );
    assertEquals(0, dashboardService.getReportDashboardItems( reportA ).size() );
    assertEquals(0, dashboardService.getReportDashboardItems( reportB ).size() );
    assertEquals( 0, dashboard.getItemCount() );
}