private XmlsonObject representation;
@SuppressWarnings("unchecked")
@Before
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);