* A test for bug report 1161340. I wasn't able to reproduce the problem
* with this test.
*/
public void test1161340() {
TimePeriodValuesCollection dataset = new TimePeriodValuesCollection();
TimePeriodValues v1 = new TimePeriodValues("V1");
v1.add(new Day(11, 3, 2005), 1.2);
v1.add(new Day(12, 3, 2005), 3.4);
dataset.addSeries(v1);
assertEquals(1, dataset.getSeriesCount());
dataset.removeSeries(v1);
assertEquals(0, dataset.getSeriesCount());
TimePeriodValues v2 = new TimePeriodValues("V2");
v1.add(new Day(5, 3, 2005), 1.2);
v1.add(new Day(6, 3, 2005), 3.4);
dataset.addSeries(v2);
assertEquals(1, dataset.getSeriesCount());
}