@Test
public void canWriteDataFrameAfterGoAwaySent() throws Exception {

    Http2Stream stream = createStream(STREAM_ID, false);
    connection.goAwaySent(0, 0, EMPTY_BUFFER);
    ByteBuf data = mock(ByteBuf.class);
    encoder.writeData(ctx, STREAM_ID, data, 0, false, newPromise());
    verify(remoteFlow).addFlowControlled(eq(stream), any(FlowControlled.class));
}