@Test
public void testEncodeConstructorString() {

    assertThat(FunctionEncoder.encodeConstructor(
            Collections.<Type>singletonList(new Utf8String("Greetings!"))),
            is("0000000000000000000000000000000000000000000000000000000000000020"
                    + "000000000000000000000000000000000000000000000000000000000000000a"
                    + "4772656574696e67732100000000000000000000000000000000000000000000"));
}