@Override
    public void testAndAssert(RouterErrorCode expectedError) throws Exception {
      future = router.deleteBlob(blobIdString, null);
      if (expectedError == null) {
        future.get(AWAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
      } else {
        assertFailureAndCheckErrorCode(future, expectedError);
      }
    }
A checker that either asserts that a delete operation succeeds or returns the specified error code.
ambry-router/src/test/java/com/github/ambry/router/DeleteManagerTest.java