### Question:
BalancePresenter extends BasePresenter<IBalanceView> implements IBalancePresenter { private void updateBalance(Balance balance) { int balanceValue = balance.getAmount().intValue(); if (view != null) { view.updateBalance(balanceValue); } } BalancePresenter(@NonNull IBalanceView view,
		@NonNull final EventLogger eventLogger,
		@NonNull final BlockchainSource blockchainSource,
		@NonNull final OrderDataSource orderRepository); @Override void onStart(); @Override void onStop(); @Override void onAttach(IBalanceView view); @Override void balanceClicked(); @Override void setClickListener(BalanceClickListener balanceClickListener); @Override void visibleScreen(@ScreenId int id); static final int PENDING; static final int DELAYED; static final int COMPLETED; static final int FAILED; static final int EARN; static final int SPEND; }### Answer:
@Test public void test_Update_Balance() throws Exception { Balance balance = new Balance(); balanceObserverCaptor.getValue().onChanged(balance); verify(balanceView).updateBalance(0); balance.setAmount(new BigDecimal(30)); balanceObserverCaptor.getValue().onChanged(balance); verify(balanceView).updateBalance(30); }