@Test
  public void accountApiTest() throws Exception {
    verifyGetAccountsAndContainer();

    // update and add accounts
    Map<Short, Account> accountsById =
        ACCOUNT_SERVICE.getAllAccounts().stream().collect(Collectors.toMap(Account::getId, Function.identity()));

    Account editedAccount = accountsById.values().stream().findAny().get();
    Container editedContainer = editedAccount.getAllContainers().stream().findAny().get();
    editedContainer = new ContainerBuilder(editedContainer).setDescription("new description abcdefgh").build();
    editedAccount = new AccountBuilder(editedAccount).addOrUpdateContainer(editedContainer).build();
    updateAccountsAndVerify(ACCOUNT_SERVICE, editedAccount, ACCOUNT_SERVICE.generateRandomAccount());

    verifyGetAccountsAndContainer();

    // Test adding a container to the account
    Container newContainer = ACCOUNT_SERVICE.getRandomContainer(editedAccount.getId());
    updateContainersAndVerify(editedAccount, newContainer);
  }
Tests for the account/container get/update API.
ambry-frontend/src/integration-test/java/com/github/ambry/frontend/FrontendIntegrationTest.java