@Before
  public void init() throws Exception {
    mockTime = new MockTime();
    mockSelectorState = new AtomicReference<>(MockSelectorState.Good);
    clusterMap = new MockClusterMap();
    serverLayout = new MockServerLayout(clusterMap);
    localDc = clusterMap.getDatacenterName(clusterMap.getLocalDatacenterId());
    VerifiableProperties vProps = new VerifiableProperties(getNonBlockingRouterProperties());
    RouterConfig routerConfig = new RouterConfig(vProps);
    routerMetrics = new NonBlockingRouterMetrics(clusterMap, routerConfig);
    router = new NonBlockingRouter(routerConfig, routerMetrics,
        new MockNetworkClientFactory(vProps, mockSelectorState, MAX_PORTS_PLAIN_TEXT, MAX_PORTS_SSL,
            CHECKOUT_TIMEOUT_MS, serverLayout, mockTime), new LoggingNotificationSystem(), clusterMap, null, null, null,
        new InMemAccountService(false, true), mockTime, MockClusterMap.DEFAULT_PARTITION_CLASS, null);
    List<PartitionId> mockPartitions = clusterMap.getWritablePartitionIds(MockClusterMap.DEFAULT_PARTITION_CLASS);
    partition = mockPartitions.get(ThreadLocalRandom.current().nextInt(mockPartitions.size()));
    blobId =
        new BlobId(routerConfig.routerBlobidCurrentVersion, BlobId.BlobIdType.NATIVE, clusterMap.getLocalDatacenterId(),
            Utils.getRandomShort(TestUtils.RANDOM), Utils.getRandomShort(TestUtils.RANDOM), partition, false,
            BlobId.BlobDataType.DATACHUNK);
    blobIdString = blobId.getID();
    deleteManager =
        new DeleteManager(clusterMap, new ResponseHandler(clusterMap), accountService, notificationSystem, routerConfig,
            routerMetrics, new RouterCallback(null, new ArrayList<>()), mockTime, router);
    MockNetworkClientFactory networkClientFactory =
        new MockNetworkClientFactory(vProps, mockSelectorState, MAX_PORTS_PLAIN_TEXT, MAX_PORTS_SSL,
            CHECKOUT_TIMEOUT_MS, serverLayout, mockTime);
    networkClient = networkClientFactory.getNetworkClient();
  }
Initializes ClusterMap, Router, mock servers, and an {@code BlobId} to be deleted.
ambry-router/src/test/java/com/github/ambry/router/DeleteManagerTest.java