public void setup() throws Exception {
this.context = new MockResourceContext();
this.account = mock(Account.class);
when(account.getRelativeId()).thenReturn(1);
this.accounts = new AccountList(account);
when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);
this.txaction = mock(Txaction.class);
this.filteredTxaction = mock(Txaction.class);
this.txactions = ImmutableList.of(txaction, filteredTxaction);