private void assertOperationFailure(RouterErrorCode errorCode) throws IOException {
    correlationIdToGetOperation.clear();
    router.currentOperationsCount.incrementAndGet();
    GetBlobInfoOperation op =
        new GetBlobInfoOperation(routerConfig, routerMetrics, mockClusterMap, responseHandler, blobId, options, null,
            routerCallback, kms, cryptoService, cryptoJobHandler, time, false, quotaChargeCallback, router);
    requestRegistrationCallback.setRequestsToSend(new ArrayList<>());
    op.poll(requestRegistrationCallback);
    Assert.assertEquals("There should only be as many requests at this point as requestParallelism", requestParallelism,
        correlationIdToGetOperation.size());
    completeOp(op);
    RouterException routerException = (RouterException) op.getOperationException();
    Assert.assertEquals(errorCode, routerException.getErrorCode());
  }
Assert that operation fails with the expected error code
@param errorCode expected error code on failure
@throws IOException
ambry-router/src/test/java/com/github/ambry/router/GetBlobInfoOperationTest.java