@Test
public void chain_writes() {

    final DummySession session = new DummySession(service);
    final WriteRequest buffer = mock(DefaultWriteRequest.class);
    session.processMessageWriting(buffer, null);
    verify(filter1).messageWriting(eq(session), eq(buffer), any(WriteFilterChainController.class));
    verify(filter2).messageWriting(eq(session), eq(buffer), any(WriteFilterChainController.class));
    verify(filter3).messageWriting(eq(session), eq(buffer), any(WriteFilterChainController.class));
}