@Test
  public void testUpdateContainersBothSuccess() throws Exception {
    Collection<Container> updatedContainers = Collections.singletonList(
        new ContainerBuilder(testContainer).setStatus(Container.ContainerStatus.INACTIVE).build());
    when(primaryAccountService.updateContainers(testAccount.getName(), updatedContainers)).thenReturn(
        updatedContainers);
    when(secondaryAccountService.updateContainers(testAccount.getName(), updatedContainers)).thenReturn(
        updatedContainers);
    assertEquals("Unexpected response", updatedContainers,
        compositeAccountService.updateContainers(testAccount.getName(), updatedContainers));
    verify(primaryAccountService).updateContainers(testAccount.getName(), updatedContainers);
    verify(secondaryAccountService).updateContainers(testAccount.getName(), updatedContainers);
  }
Test composite updateContainers() with both sources returning the same result.
ambry-account/src/test/java/com/github/ambry/account/CompositeAccountServiceTest.java