@Test
    void testAreValueEqual_twoEqualFastInfosetValues_2() {
        // Same value in both buffers but different size buffers and different positions
        final ByteBuffer valBuff1 = ByteBuffer.allocateDirect(30);
        valBuff1.put(5, "value".getBytes());
        valBuff1.position(5);
        valBuff1.limit(5 + "value".length());
        LOGGER.info("valBuff1: {}", ByteBufferUtils.byteBufferInfo(valBuff1));

        final ByteBuffer valBuff2 = ByteBuffer.allocateDirect(20);
        valBuff2.put("value".getBytes());
        valBuff2.flip();
        LOGGER.info("valBuff2: {}", ByteBufferUtils.byteBufferInfo(valBuff2));

        final FastInfosetValue val1 = FastInfosetValue.wrap(valBuff1);
        final FastInfosetValue val2 = FastInfosetValue.wrap(valBuff2);
        doAreValuesEqualAssert(
                val1,
                val2,
                true);
    }
Generate a list (of size desiredRecords) of strings that all share the same hashcode
Adapted from https://gist.github.com/vaskoz/5703423
stroom-pipeline/src/test/java/stroom/pipeline/refdata/store/offheapstore/databases/TestValueStoreDb.java