### Question:
SimpleHistogramDataset extends AbstractIntervalXYDataset implements IntervalXYDataset, Cloneable, PublicCloneable,
            Serializable { public void removeAllBins() { this.bins = new ArrayList<SimpleHistogramBin>(); notifyListeners(new DatasetChangeEvent(this, this)); } SimpleHistogramDataset(Comparable key); boolean getAdjustForBinSize(); void setAdjustForBinSize(boolean adjust); @Override int getSeriesCount(); @Override Comparable getSeriesKey(int series); @Override DomainOrder getDomainOrder(); @Override int getItemCount(int series); void addBin(SimpleHistogramBin bin); void addObservation(double value); void addObservation(double value, boolean notify); void addObservations(double[] values); void clearObservations(); void removeAllBins(); @Override Number getX(int series, int item); @Override double getXValue(int series, int item); @Override Number getY(int series, int item); @Override double getYValue(int series, int item); @Override Number getStartX(int series, int item); @Override double getStartXValue(int series, int item); @Override Number getEndX(int series, int item); @Override double getEndXValue(int series, int item); @Override Number getStartY(int series, int item); @Override double getStartYValue(int series, int item); @Override Number getEndY(int series, int item); @Override double getEndYValue(int series, int item); @Override boolean equals(Object obj); @Override Object clone();  }### Answer:
@Test public void testRemoveAllBins() { SimpleHistogramDataset d1 = new SimpleHistogramDataset("D1"); d1.addBin(new SimpleHistogramBin(0.0, 1.0)); d1.addObservation(0.5); d1.addBin(new SimpleHistogramBin(2.0, 3.0)); assertEquals(2, d1.getItemCount(0)); d1.removeAllBins(); assertEquals(0, d1.getItemCount(0)); }