@Test
public void settingsWriteAfterGoAwayShouldSucceed() throws Exception {

    goAwayReceived(0);
    ChannelPromise promise = newPromise();
    encoder.writeSettings(ctx, new Http2Settings(), promise);
    verify(writer).writeSettings(eq(ctx), any(Http2Settings.class), eq(promise));
}