package net.openhft.chronicle.wire;

import net.openhft.chronicle.bytes.Bytes;
import net.openhft.chronicle.bytes.HexDumpBytes;
import org.junit.Test;

import static junit.framework.TestCase.assertEquals;

public class HexDumpTest {
    @Test
    public void testEndian() {
        Bytes b = new HexDumpBytes();
        b.writeInt(0x0a0b0c0d);
        assertEquals("0d 0c 0b 0a\n", b.toHexString());
    }
}

@@ -145,16 +145,44 @@
 .Test;%0A%0A
+import java.nio.ByteOrder;%0A%0A
 import s
@@ -295,16 +295,101 @@
 ian() %7B%0A
+        if (ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN)%0A            return;%0A%0A
         

Add a test showing HexDumpBytes is little endian (on machines which are little endian)