@Override
  public void close() throws IOException {
    isOpen.set(false);
  }
Creates an instance of BadAsyncWritableChannel that throws {@code exceptionToThrow} on write.
@param exceptionToThrow the {@link Exception} to throw on write.
ambry-commons/src/test/java/com/github/ambry/commons/ByteBufferReadableStreamChannelTest.java