public static void assertContainerInAccountService(Container container, AccountService accountService) {
    Container containerFoundById =
        accountService.getAccountById(container.getParentAccountId()).getContainerById(container.getId());
    Container containerFoundByName =
        accountService.getAccountById(container.getParentAccountId()).getContainerByName(container.getName());
    assertEquals("Container got by id from accountService/account does not match container got by name.",
        containerFoundById, containerFoundByName);
    assertEquals("Container got by id from accountService/account does not match the container to assert",
        containerFoundById, container);
  }
Assert that a {@link Container} exists in the {@link AccountService}.
@param container The {@link Container} to assert.
@param accountService The {@link AccountService} to assert {@link Container} existence.
ambry-test-utils/src/main/java/com/github/ambry/utils/AccountTestUtils.java