@Test
public void testResample() {

    XYSeries rawData = TestUtils.generateXYSeries("my series", 10000);
    SampledXYSeries sampledXYSeries = new SampledXYSeries(rawData, 2, 200);
    assertEquals(5, sampledXYSeries.getZoomLevels().size());
}