private void verifyGetAccountsAndContainer() throws Exception {
    Collection<Account> expectedAccounts = ACCOUNT_SERVICE.getAllAccounts();
    // fetch snapshot of all accounts
    assertEquals("GET /accounts returned wrong result", new HashSet<>(expectedAccounts), getAccounts(null, null));
    // fetch accounts one by one
    for (Account account : expectedAccounts) {
      assertEquals("Fetching of single account by name failed", Collections.singleton(account),
          getAccounts(account.getName(), null));
      assertEquals("Fetching of single account by id failed", Collections.singleton(account),
          getAccounts(null, account.getId()));
    }
    // fetch container one by one from specific account
    Account account = expectedAccounts.iterator().next();
    for (Container container : account.getAllContainers()) {
      assertEquals("Mismatch in container", container, getContainer(account.getName(), container.getName()));
    }
  }
Call the {@code GET /accounts} and {@code Get /accounts/containers} API and verify the response for all accounts
managed by {@link #ACCOUNT_SERVICE}.
ambry-frontend/src/integration-test/java/com/github/ambry/frontend/FrontendIntegrationTest.java