@Test
public void testDeleteEventChart()
{

    programService.addProgram( program );
    EventChart eventChart = new EventChart( "A" );
    eventChart.setProgram( program );
    eventChart.setType( ChartType.COLUMN );
    eventChartService.saveEventChart( eventChart );
    dashboardItem.setEventChart( eventChart );
    dashboardService.saveDashboard( dashboard );
    assertEquals(1, dashboardService.getEventChartDashboardItems( eventChart ).size() );
    assertEquals( 1, dashboard.getItemCount() );
    eventChartService.deleteEventChart( eventChart );
    assertEquals(0, dashboardService.getEventChartDashboardItems( eventChart ).size() );
    assertEquals( 0, dashboard.getItemCount() );
}