@Test
public void testContains() {

    Series s1 = new SimpleXYSeries("s1");
    Series s2 = new SimpleXYSeries("s1");
    Series s3 = new SimpleXYSeries("s1");
    seriesRegistry.add(s1, new LineAndPointFormatter());
    seriesRegistry.add(s2, new LineAndPointFormatter());
    assertTrue(seriesRegistry.contains(s1, LineAndPointFormatter.class));
    assertFalse(seriesRegistry.contains(s1, BarFormatter.class));
    assertTrue(seriesRegistry.contains(s2, LineAndPointFormatter.class));
    assertFalse(seriesRegistry.contains(s3, LineAndPointFormatter.class));
}