private byte[] bytesWithPoorCompression(Random random, int size) {
        byte[] value = new byte[size];
        random.nextBytes(value);
        return value;
    }
Generates the compression ratio at about 0.9
clients/src/test/java/org/apache/kafka/clients/producer/internals/RecordAccumulatorTest.java