private byte[] bytesWithGoodCompression(Random random) {
        byte[] value = new byte[100];
        ByteBuffer buffer = ByteBuffer.wrap(value);
        while (buffer.remaining() > 0)
            buffer.putInt(random.nextInt(1000));
        return value;
    }
Generates the compression ratio at about 0.6
clients/src/test/java/org/apache/kafka/clients/producer/internals/RecordAccumulatorTest.java