@Test
public void payloadSmallerThanWindowShouldBeWrittenImmediately() throws Http2Exception {

    FakeFlowControlled data = new FakeFlowControlled(5);
    sendData(STREAM_A, data);
    data.assertNotWritten();
    verifyZeroInteractions(listener);
    controller.writePendingBytes();
    data.assertFullyWritten();
    verifyZeroInteractions(listener);
}