@Test
  public void testMismatchForAccountId() throws Exception {
    ArrayList<Container> containers = new ArrayList<>();
    // container with parentAccountId = refAccountId + 1
    containers.add(buildContainerWithOtherFields(
        new ContainerBuilder(refContainerIds.get(0), refContainerNames.get(0), refContainerStatuses.get(0),
            refContainerDescriptions.get(0), (short) (refAccountId + 1)), refContainers.get(0)));
    createAccountWithBadContainersAndFail(containers, IllegalStateException.class);
  }
Tests in an {@link AccountBuilder} the account id mismatches with container id.
ambry-api/src/test/java/com/github/ambry/account/AccountContainerTest.java