@Test
public void testClear() {

    seriesRegistry.add(new SimpleXYSeries("s1"), new LineAndPointFormatter());
    seriesRegistry.add(new SimpleXYSeries("s2"), new LineAndPointFormatter());
    assertEquals(2, seriesRegistry.size());
    seriesRegistry.clear();
    assertEquals(0, seriesRegistry.size());
}