### Question:
FunctionEncoder { public static String buildMethodId(String methodSignature) { byte[] input = methodSignature.getBytes(); byte[] hash = Hash.sha3(input); return Numeric.toHexString(hash).substring(0, 10); } private  FunctionEncoder(); static String encode(Function function); static String encodeConstructor(List<Type> parameters); static String buildMethodId(String methodSignature);  }### Answer:
@Test public void testBuildMethodId() { assertThat(FunctionEncoder.buildMethodId("baz(uint32,bool)"), is("0xcdcd77c0")); }