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

        this.byteOrder = byteOrder;
    }
@Test
    void shouldReadUtf() throws Throwable
    {
        final UnsafeBuffer buffer = toUnsafeBuffer(
            (out) ->
            {
                out.writeLong(0);
                out.writeUTF("zażółć gęślą jaźń北查爾斯頓");
                out.writeLong(0);
            });

        final DirectBufferDataInput dataInput = new DirectBufferDataInput(buffer, 8, 47);
        dataInput.byteOrder(byteOrder());

        assertEquals("zażółć gęślą jaźń北查爾斯頓", dataInput.readUTF());
    }