@SuppressWarnings("unchecked")
@Before
public void setup() throws Exception {
this.context = new MockResourceContext();
this.currency = new CurrencyParam("GBP");
this.accounts = mock(AccountList.class);
when(context.getAccountDAO().findVisibleAccounts(Mockito.anyString())).thenReturn(accounts);
this.txaction = mock(Txaction.class);