@Test
  public void testDoWrite() throws IOException {
    final ByteBuffer byteBuffer = ByteBuffer.allocate(0);

    commitSesssionOutputBuffer.doWrite(byteBuffer);

    final InOrder inOrder = inOrder(sessionCommitter, delegate);
    inOrder.verify(sessionCommitter).commit();
    inOrder.verify(delegate).doWrite(byteBuffer);
    inOrder.verifyNoMoreInteractions();
  }
@deprecated Remove when {@link OutputBuffer} drops this method.
extensions/geode-modules-tomcat8/src/test/java/org/apache/geode/modules/session/catalina/Tomcat8CommitSessionOutputBufferTest.java