@Before public void setup() { super.setup(); account = mock(InvestmentAccount.class); when(accountDAO.findAccount(Mockito.anyString(), eq(1))).thenReturn(account); }
@Before public void setup() { super.setup(); when(accountDAO.findAccount(Mockito.anyString(), eq(99))).thenReturn(null); }