@Test
public void testSimpleFunctionStringResultDecode() {

    Function function = new Function("simple",
            Arrays.<Type>asList(),
            Collections.<TypeReference<?>>singletonList(new TypeReference<Utf8String>() {
            }));
    List<Type> utf8Strings = FunctionReturnDecoder.decode(
            "0x0000000000000000000000000000000000000000000000000000000000000020"
                    + "000000000000000000000000000000000000000000000000000000000000000d"
                    + "6f6e65206d6f72652074696d6500000000000000000000000000000000000000",
            function.getOutputParameters());
    assertThat((String) utf8Strings.get(0).getValue(), is("one more time"));
}