@Test
  public void testInitCacheOnStartUp() throws Exception {
    Account testAccount = makeTestAccountWithContainer();
    AccountUpdateInfo accountUpdateInfo =
        new AccountUpdateInfo(testAccount, true, false, new ArrayList<>(testAccount.getAllContainers()),
            new ArrayList<>());
    mySqlAccountStore.updateAccounts(Collections.singletonList(accountUpdateInfo));
    mySqlAccountService = getAccountService();
    // Test in-memory cache is updated with accounts from mysql store on start up.
    List<Account> accounts = new ArrayList<>(mySqlAccountService.getAllAccounts());
    assertEquals("Mismatch in number of accounts", 1, accounts.size());
    assertEquals("Mismatch in account information", testAccount, accounts.get(0));
  }
Tests in-memory cache is updated with accounts from mysql db store on start up
ambry-account/src/integration-test/java/com/github/ambry/account/MySqlAccountServiceIntegrationTest.java