### Question:
Balances { public long total() { return mOnChainBalanceTotal + mChannelBalance + mChannelBalancePendingOpen + mChannelBalanceLimbo; } Balances(long onChainTotal, long onChainConfirmed,
                    long onChainUnconfirmed, long channelBalance,
                    long channelBalancePendingOpen, long channelBalanceLimbo); long total(); long onChainTotal(); long onChainConfirmed(); long onChainUnconfirmed(); long channelBalance(); long channelBalancePending(); long channelBalanceLimbo();  }### Answer:
@Test public void testBalanceTotal() { long onChainBalanceTotal = 200; long onChainBalanceConfirmed = 100; long onChainBalanceUnconfirmed = 100; long channelBalance = 100; long channelBalancePendingOpen = 100; long channelBalanceLimbo = 100; Balances balances = new Balances(onChainBalanceTotal, onChainBalanceConfirmed, onChainBalanceUnconfirmed, channelBalance, channelBalancePendingOpen, channelBalanceLimbo); assertEquals(500, balances.total()); }