@Test
    public void testDefaultEncoding() throws Exception {
        byte[] bytes = new byte[] {(byte) 0x11, (byte) 0x22, (byte) 0x10, (byte) 0xF4, (byte) 0xC0, (byte) 0x23, (byte) 0xB6, (byte) 0xD3};

        // Parse the input
        ReadBufferByteBased readBufferByteBased = new ReadBufferByteBased(bytes);
        BigInteger bigIntegerValue = readBufferByteBased.readUnsignedBigInteger("test", 64);

        // Check the expected value matches
        Assertions.assertEquals(new BigInteger("1234567891234567891"), bigIntegerValue);

        // Serialize the value again
        WriteBufferByteBased writeBufferByteBased = new WriteBufferByteBased(bytes.length);
        writeBufferByteBased.writeUnsignedBigInteger("test", 64, bigIntegerValue);

        // Check the output matches the original one
        byte[] serializedBytes = writeBufferByteBased.getBytes();
        Assertions.assertArrayEquals(bytes, serializedBytes);
    }
In default encoding

@throws Exception something went wrong
plc4j/spi/src/test/java/org/apache/plc4x/java/spi/generation/UnsignedBigIntegerTest.java