public void byteOrder(final ByteOrder byteOrder)
    {
        if (null == byteOrder)
        {
            throw new IllegalArgumentException("byteOrder cannot be null");
        }

        this.byteOrder = byteOrder;
    }
@Test
    void shouldReadChar() throws Throwable
    {
        final UnsafeBuffer buffer = toUnsafeBuffer((out) -> out.writeChars("zażółć gęślą jaźń北查爾斯頓"));
        final DirectBufferDataInput dataInput = new DirectBufferDataInput(buffer, 30, 14);
        dataInput.byteOrder(byteOrder());

        assertEquals('ź', dataInput.readChar());
        assertEquals('ń', dataInput.readChar());
        assertEquals('北', dataInput.readChar());
        assertEquals('查', dataInput.readChar());
    }