### Question:
DefaultWindDataset extends AbstractXYDataset implements WindDataset, PublicCloneable { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DefaultWindDataset)) { return false; } DefaultWindDataset that = (DefaultWindDataset) obj; if (!this.seriesKeys.equals(that.seriesKeys)) { return false; } if (!this.allSeriesData.equals(that.allSeriesData)) { return false; } return true; } DefaultWindDataset();  DefaultWindDataset(Object[][][] data);  DefaultWindDataset(String[] seriesNames, Object[][][] data);  DefaultWindDataset(List<String> seriesKeys, Object[][][] data); @Override int getSeriesCount(); @Override int getItemCount(int series); @Override Comparable getSeriesKey(int series); @Override Number getX(int series, int item); @Override Number getY(int series, int item); @Override Number getWindDirection(int series, int item); @Override Number getWindForce(int series, int item); static List<String> seriesNameListFromDataArray(Object[][] data); @Override boolean equals(Object obj);  }### Answer:
@Test public void testEquals() { DefaultWindDataset d1 = new DefaultWindDataset(); DefaultWindDataset d2 = new DefaultWindDataset(); assertEquals(d1, d2); assertEquals(d2, d1); d1 = createSampleDataset1(); assertFalse(d1.equals(d2)); d2 = createSampleDataset1(); assertEquals(d1, d2); }