@Test
  public void idempotentOperationsTest() throws IOException {
    byte[] in = fillRandomBytes(new byte[1]);
    ByteBufferReadableStreamChannel byteBufferReadableStreamChannel =
        new ByteBufferReadableStreamChannel(ByteBuffer.wrap(in));
    assertTrue("ByteBufferReadableStreamChannel is not open", byteBufferReadableStreamChannel.isOpen());
    byteBufferReadableStreamChannel.close();
    assertFalse("ByteBufferReadableStreamChannel is not closed", byteBufferReadableStreamChannel.isOpen());
    // should not throw exception.
    byteBufferReadableStreamChannel.close();
    assertFalse("ByteBufferReadableStreamChannel is not closed", byteBufferReadableStreamChannel.isOpen());
  }
Tests that no exceptions are thrown on repeating idempotent operations. Does <b><i>not</i></b> currently test that
state changes are idempotent.
@throws IOException
ambry-commons/src/test/java/com/github/ambry/commons/ByteBufferReadableStreamChannelTest.java