@Test
public void rstStreamWriteForUnknownStreamShouldIgnore() throws Exception {

    ChannelPromise promise = newPromise();
    encoder.writeRstStream(ctx, 5, PROTOCOL_ERROR.code(), promise);
    verify(writer, never()).writeRstStream(eq(ctx), anyInt(), anyLong(), eq(promise));
}