@Test
public void testFunctionSimpleEncode() {

    Function function = new Function(
            "baz",
            Arrays.asList(new Uint32(BigInteger.valueOf(69)), new Bool(true)),
            Collections.<TypeReference<?>>emptyList()
    );
    assertThat(FunctionEncoder.encode(function),
            is("0xcdcd77c0"
                    + "0000000000000000000000000000000000000000000000000000000000000045"
                    + "0000000000000000000000000000000000000000000000000000000000000001"
            ));
}