/**
* Test the equals() method.
*/
public void testEquals() {
SimpleTimePeriod p1 = new SimpleTimePeriod(
new Date(1000L), new Date(1004L)
);
SimpleTimePeriod p2 = new SimpleTimePeriod(
new Date(1000L), new Date(1004L)
);
assertTrue(p1.equals(p2));
assertTrue(p2.equals(p1));
p1 = new SimpleTimePeriod(new Date(1002L), new Date(1004L));
assertFalse(p1.equals(p2));
p2 = new SimpleTimePeriod(new Date(1002L), new Date(1004L));
assertTrue(p1.equals(p2));
p1 = new SimpleTimePeriod(new Date(1002L), new Date(1003L));
assertFalse(p1.equals(p2));
p2 = new SimpleTimePeriod(new Date(1002L), new Date(1003L));
assertTrue(p1.equals(p2));
}