private void readAndUpdateBadRecord(Collection<Account> accounts) throws Exception {
    writeAccountsToHelixPropertyStore(accounts, false);
    accountService = mockHelixAccountServiceFactory.getAccountService();
    assertEquals("Wrong number of accounts in helixAccountService", 0, accountService.getAllAccounts().size());
    updateAccountsAndAssertAccountExistence(Collections.singletonList(refAccount), 0, false);
    writeAccountsToHelixPropertyStore(accounts, true);
    assertEquals("Number of account is wrong.", 0, accountService.getAllAccounts().size());
  }
PrePopulates a collection of self-conflicting {@link Account}s, which will impact {@link HelixAccountService}
startup and update.
@param accounts The self-conflicting {@link Account}s.
ambry-account/src/test/java/com/github/ambry/account/HelixAccountServiceTest.java