void clearStates() {
    exceptionOnEncryption.set(null);
    exceptionOnDecryption.set(null);
  }
MockCryptoService to assist in testing exception cases
ambry-router/src/test/java/com/github/ambry/router/MockCryptoService.java