@Test
public void itCanCalculateRunningTotalBalances() {
txactionList.calculateRunningTotalBalances(Lists.newArrayList(checkingUSD, cashUSD, creditEUR), USD, exchangeRates);
// latest account balances determine the initial amount
assertEquals(new TxactionListItem(wholeFoodsUSD, money("10270.83", USD)), txactionList.get(0));
// 2nd account balance is ignored here
assertEquals(new TxactionListItem(starbucksEUR, money("10315.83", USD)), txactionList.get(1));
assertEquals(new TxactionListItem(checkingAtmWithdrawalUSD, money("10318.11", USD)), txactionList.get(2));
assertEquals(new TxactionListItem(starbucksUSD, money("10398.11", USD)), txactionList.get(3));
assertEquals(new TxactionListItem(cashAtmWithdrawalUSD, money("10401.06", USD)), txactionList.get(4));
assertEquals(new TxactionListItem(mixtGreensUSD, money("10401.06", USD)), txactionList.get(5));
}