void checkExpectedRouterErrorCode(RouterErrorCode routerErrorCode) {
      try {
        future.get(AWAIT_TIMEOUT, TimeUnit.SECONDS);
        Assert.fail("Blob should have failed in operation: " + getOperationName());
      } catch (Exception e) {
        Assert.assertTrue("Expect RouterException", e.getCause() instanceof RouterException);
        Assert.assertEquals("RouterErrorCode doesn't match.", routerErrorCode,
            ((RouterException) e.getCause()).getErrorCode());
      }
    }
Check if router get expected RouterErrorCode.
@param routerErrorCode is the expected error code.
ambry-server/src/integration-test/java/com/github/ambry/server/RouterServerTestFramework.java