@Test
public void testRemove() {

    Series series = new SimpleXYSeries("s1");
    seriesRegistry.add(series, new LineAndPointFormatter());
    assertEquals(1, seriesRegistry.size());
    seriesRegistry.remove(new SimpleXYSeries("s2"));
    assertEquals(1, seriesRegistry.size());
    seriesRegistry.remove(series);
    assertEquals(0, seriesRegistry.size());
}