public void testComparisonSameAsDateValueImpl() throws Exception {
// It's more important for DateValueComparison to be a total ordering
// (see the class comments) than it be consistent with DateValue.
DateValue[] inOrder = {
new DateValueImpl(2006, 4, 11),
new DateTimeValueImpl(2006, 4, 11, 0, 0, 0),
new DateTimeValueImpl(2006, 4, 11, 0, 0, 1),
new DateTimeValueImpl(2006, 4, 11, 12, 30, 15),
new DateTimeValueImpl(2006, 4, 11, 23, 59, 59),
new DateValueImpl(2006, 4, 12),
new DateValueImpl(2006, 4, 13),
new DateTimeValueImpl(2006, 4, 14, 12, 0, 0),
new DateTimeValueImpl(2006, 4, 14, 15, 0, 0),
};
for (int i = 1; i < inOrder.length; ++i) {
assertTrue(DateValueComparison.comparable(inOrder[i - 1]) <
DateValueComparison.comparable(inOrder[i]));