private void getBlobAndAssertFailure(String blobId, GetBlobOptions options, RouterErrorCode expectedErrorCode)
      throws Exception {
    try {
      Future future = router.getBlob(blobId, options);
      future.get(routerConfig.routerRequestTimeoutMs + 1, TimeUnit.MILLISECONDS);
      Assert.fail("operation should have thrown");
    } catch (ExecutionException e) {
      RouterException routerException = (RouterException) e.getCause();
      Assert.assertEquals(expectedErrorCode, routerException.getErrorCode());
    }
  }
Do a getBlob on the given blob id and ensure that exception is thrown with the expected error code
@param blobId the id of the blob (simple or composite) that needs to be fetched and compared.
@param options {@link GetBlobOptions} to be used in the get call
@param expectedErrorCode expected {@link RouterErrorCode}
@throws Exception
ambry-router/src/test/java/com/github/ambry/router/GetManagerTest.java