assertEquals(0, txactionWithNullCreatedAt.compareTo(txaction));
}
@Test
public void itComesBeforeAnotherTxactionOnTheSameDateWithTheSameSequenceWithALaterCreationDate() throws Exception {
Txaction txactionWithLaterCreationDate = new Txaction(euroSavings, decimal("-34.22"), jun15th);
txactionWithLaterCreationDate.setSequence(txaction.getSequence());
inject(Txaction.class, txactionWithLaterCreationDate, "createdAt", jun17th);
assertEquals(-1, txaction.compareTo(txactionWithLaterCreationDate));
assertEquals(1, txactionWithLaterCreationDate.compareTo(txaction));
}