@Test
  public void testGetDeprecatedContainers() throws Exception {
    Set<Short> accountIdSet = new HashSet<>();
    accountIdSet.add(refAccountId);
    long curTimestamp = System.currentTimeMillis();
    generateRefAccountsForDeprecationTest(idToRefAccountMap, idToRefContainerMap, accountIdSet, 3, curTimestamp);
    accountService = mockHelixAccountServiceFactory.getAccountService();
    accountService.updateAccounts(idToRefAccountMap.values());
    assertAccountsInAccountService(idToRefAccountMap.values(), 3, accountService);
    Set<Container> containerSet = AccountUtils.getDeprecatedContainers(accountService, 0);
    assertEquals("Incorrect number of deprecated containers", 6, containerSet.size());
  }
Tests {@link AccountUtils#getDeprecatedContainers(AccountService, long)}.
@throws Exception
ambry-account/src/test/java/com/github/ambry/account/HelixAccountServiceTest.java