@Test
  public void testRemoveNonExistContainer() {
    Account origin = refAccount;
    AccountBuilder accountBuilder = new AccountBuilder(origin);
    Container container = buildContainerWithOtherFields(
        new ContainerBuilder((short) -999, refContainerNames.get(0), refContainerStatuses.get(0),
            refContainerDescriptions.get(0), refAccountId), refContainers.get(0));
    accountBuilder.removeContainer(container);
    accountBuilder.removeContainer(null);
    Account account = accountBuilder.build();
    assertAccountAgainstReference(account, true);
  }
Tests removing a non-existent container from accountBuilder.
ambry-api/src/test/java/com/github/ambry/account/AccountContainerTest.java