assertEquals("Transactions for the end of November", 2, transactions.size());
}
@Test
public void testGetOpenAccounts() {
UserDetails user = UserDetails.findUserDetailsByUsername("admin");
assertEquals("Null user", 0, Account.findOpenAccounts(null).size());
assertEquals("Admin user", 0, Account.findOpenAccounts(user).size());
user = UserDetails.findUserDetailsByUsername("jose");
assertEquals("A user with open accounts", 3, Account.findOpenAccounts(user).size());
}