public void testRemoveChart() {
try {
SpreadsheetDocument doc = (SpreadsheetDocument) Document.loadDocument(ResourceUtilities
.getTestResourceAsStream(CHART_FILE2));
doc.deleteChartById("Object 1");
//Assert.assertEquals(9, doc.getChartCount());
String barTitle = "Bar Chart with CellRange ";
String areaTitle = "AREA Chart with CellRange";
doc.deleteChartByTitle(barTitle);
Assert.assertNotNull(doc.getChartByTitle(areaTitle));