public void setup() throws Exception {
this.context = new MockResourceContext();
this.currency = new CurrencyParam("GBP");
this.startDate = new ISODateParam("20070801");
this.endDate = new ISODateParam("20070901");
this.accounts = mock(AccountList.class);
when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);
this.txaction = mock(Txaction.class);