@Test
public void priorityWriteShouldSetPriorityForStream() throws Exception {

    ChannelPromise promise = newPromise();
    short weight = 255;
    encoder.writePriority(ctx, STREAM_ID, 0, weight, true, promise);
    // Verify that this did NOT create a stream object.
    Http2Stream stream = stream(STREAM_ID);
    assertNull(stream);
    verify(writer).writePriority(eq(ctx), eq(STREAM_ID), eq(0), eq((short) 255), eq(true), eq(promise));
}