@Test
  public void testUpdateNameConflictingAccounts() throws Exception {
    accountService = mockHelixAccountServiceFactory.getAccountService();
    List<Account> conflictAccounts = new ArrayList<>();
    conflictAccounts.add(new AccountBuilder((short) 1, "a", AccountStatus.INACTIVE).build());
    conflictAccounts.add(new AccountBuilder((short) 2, "a", AccountStatus.INACTIVE).build());
    assertUpdateAccountsFails(conflictAccounts, AccountServiceErrorCode.ResourceConflict, accountService);
  }
Tests updating a collection of {@link Account}s, where the {@link Account}s are conflicting among themselves
in name.
@throws Exception Any unexpected exception.
ambry-account/src/test/java/com/github/ambry/account/HelixAccountServiceTest.java