@Test
public void testWrapSingleMedium() {

    ByteBuf buffer = copyMedium(42);
    assertEquals(3, buffer.capacity());
    assertEquals(42, buffer.readMedium());
    assertFalse(buffer.isReadable());
    buffer.release();
}