@Test
  public void testUpdateAccountsBothSuccess() throws AccountServiceException {
    Account updatedTestAccount = new AccountBuilder(testAccount).status(Account.AccountStatus.INACTIVE).build();
    Collection<Account> accountsToUpdate = Collections.singletonList(updatedTestAccount);
    compositeAccountService.updateAccounts(accountsToUpdate);
    verify(primaryAccountService).updateAccounts(accountsToUpdate);
    verify(secondaryAccountService).updateAccounts(accountsToUpdate);
  }
Test composite updateAccounts() with both sources returning the same result.
ambry-account/src/test/java/com/github/ambry/account/CompositeAccountServiceTest.java