@Override
        public String read(ByteBuffer buffer) {
            short length = buffer.getShort();
            if (length < 0)
                throw new SchemaException("String length " + length + " cannot be negative");
            if (length > buffer.remaining())
                throw new SchemaException("Error reading string of length " + length + ", only " + buffer.remaining() + " bytes available");
            String result = Utils.utf8(buffer, length);
            buffer.position(buffer.position() + length);
            return result;
        }
The Boolean type represents a boolean value in a byte by using
the value of 0 to represent false, and 1 to represent true.

If for some reason a value that is not 0 or 1 is read,
then any non-zero value will return true.
clients/src/main/java/org/apache/kafka/common/protocol/types/Type.java