### Question:
ScatterPlotDataset extends AbstractXYDataset implements TaskListener { public int getItemCount(int series) { return d_itemCount; } ScatterPlotDataset(LyndOBrienModel model); @Override int getSeriesCount(); @Override Comparable<?> getSeriesKey(int series); int getItemCount(int series); Number getX(int series, int item); Number getY(int series, int item); void taskEvent(TaskEvent event);  }### Answer:
@Test public void testInitializeDataSetWithFinishedSimulation() throws InterruptedException { TaskUtil.run(d_model.getTask()); ScatterPlotDataset set = new ScatterPlotDataset(d_model); assertEquals(3000, set.getItemCount(0)); }