static String encodeBool(Bool value) {
        byte[] rawValue = new byte[MAX_BYTE_LENGTH];
        if (value.getValue()) {
            rawValue[rawValue.length - 1] = 1;
        }
        return Numeric.toHexStringNoPrefix(rawValue);
    }
@Test
    public void testBoolEncode() {
        assertEquals(
                TypeEncoder.encodeBool(new Bool(false)),
                ("0000000000000000000000000000000000000000000000000000000000000000"));
        assertEquals(
                TypeEncoder.encodeBool(new Bool(true)),
                ("0000000000000000000000000000000000000000000000000000000000000001"));
    }