public void cycleObject() {
final TreeMap<LocalDate, MultipleCurrencyAmount> map = new TreeMap<LocalDate, MultipleCurrencyAmount>();
map.put(LocalDate.of(2000, 1, 1), MultipleCurrencyAmount.of(CurrencyAmount.of(Currency.USD, 1000)));
map.put(LocalDate.of(2000, 2, 5), MultipleCurrencyAmount.of(CurrencyAmount.of(Currency.USD, 2000), CurrencyAmount.of(Currency.EUR, 4000)));
map.put(LocalDate.of(2010, 1, 1), MultipleCurrencyAmount.of(CurrencyAmount.of(Currency.USD, -3000), CurrencyAmount.of(Currency.GBP, 700)));
final FixedPaymentMatrix matrix = new FixedPaymentMatrix(map);
assertEquals(matrix, cycleObject(FixedPaymentMatrix.class, matrix));
}