@Test
public void testEquals() {

    TimestampSet set1 = new TimestampSet();
    set1.add(6.0);
    set1.add(1.0);
    TimestampSet set2 = new TimestampSet();
    set2.add(6.0);
    set2.add(1.0);
    TimestampSet set3 = new TimestampSet();
    set3.add(6.0);
    set3.add(2.0);
    Assert.assertTrue(set1.equals(set2));
    Assert.assertTrue(set2.equals(set1));
    Assert.assertFalse(set1.equals(set3));
    Assert.assertFalse(set3.equals(set1));
    Assert.assertTrue(set1.hashCode() == set2.hashCode());
    Assert.assertFalse(set1.hashCode() == set3.hashCode());
}