Account account = null;
try {
account = stubValidAccount(false);
final IAccountService accountService = getEntityServiceFactory().instance(IAccountService.class);
account = accountService.persist(account);
getDbTrans().startTrans();
final Criteria<AccountHistory> criteria = new Criteria<AccountHistory>(AccountHistory.class);
criteria.getPrimaryGroup().addCriterion("account", Account.class, account.getId());
final List<SearchResult> list = AbstractDbAwareTest.getEntitiesFromDb(getDao(), criteria);