private void assertAccountInfoMapSameAccountWithAccountMap(AccountInfoMap accountInfoMap,
      Map<Short, Account> accountMap) {
    Collection<Account> obtainedAccounts = accountInfoMap.getAccounts();

    assertEquals("Account size doesn't match", obtainedAccounts.size(), obtainedAccounts.size());
    for (Account obtainedAccount : obtainedAccounts) {
      Account expectedAccount = accountMap.get(obtainedAccount.getId());
      assertEquals("Account mismatched", expectedAccount, obtainedAccount);
    }
  }
Compare the accounts in {@link AccountInfoMap} with the account map from id to account.
@param accountInfoMap The {@link AccountInfoMap}.
@param accountMap The account map from id to account.
ambry-account/src/test/java/com/github/ambry/account/RouterStoreTest.java