@Test
  public void testDeprecatedContainerCloudSyncTask() {
    Set<Container> deleteInProgressSet =
        new HashSet<>(Arrays.asList(Mockito.mock(Container.class), Mockito.mock(Container.class)));
    Set<Container> inactiveSet =
        new HashSet<>(Arrays.asList(Mockito.mock(Container.class), Mockito.mock(Container.class)));
    Mockito.when(accountService.getContainersByStatus(Container.ContainerStatus.DELETE_IN_PROGRESS))
        .thenReturn(deleteInProgressSet);
    Mockito.when(accountService.getContainersByStatus(Container.ContainerStatus.INACTIVE)).thenReturn(inactiveSet);
    Assert.assertTrue(
        "There should be no deprecated containers in cloud before running the container deletion sync task",
        cloudDestination.getDeletedContainers().isEmpty());
    deprecatedContainerCloudSyncTask.run();
    Assert.assertEquals("After sync deprecated containers should be same in cloud and account service",
        cloudDestination.getDeletedContainers().size(), deleteInProgressSet.size() + inactiveSet.size());
  }
Test that the {@link DeprecatedContainerCloudSyncTask} is able to sync between account service and cloud destination.
ambry-vcr/src/test/java/com/github/ambry/vcr/DeprecatedContainerCloudSyncTaskTest.java