### Question:
WasmEventEncoder { private static String encodeBoolean(Boolean bool) { BigInteger number = BigInteger.ZERO; if(bool){ number = BigInteger.ONE; } return encodeUint(number); } private  WasmEventEncoder(); static String encode(WasmEvent event); static String encodeIndexParameter(Object o);  }### Answer:
@Test public void encodeBoolean() { Boolean bool = true; String result = WasmEventEncoder.encodeIndexParameter(bool); assertThat(result, is("0x0000000000000000000000000000000000000000000000000000000000000001")); bool = false; result = WasmEventEncoder.encodeIndexParameter(bool); assertThat(result, is("0x0000000000000000000000000000000000000000000000000000000000000000")); }