@Test
public void pushPromiseWriteAfterGoAwayReceivedShouldFail() throws Exception {

    createStream(STREAM_ID, false);
    goAwayReceived(0);
    ChannelFuture future = encoder.writePushPromise(ctx, STREAM_ID, PUSH_STREAM_ID, EmptyHttp2Headers.INSTANCE, 0,
            newPromise());
    assertTrue(future.isDone());
    assertFalse(future.isSuccess());
}