@Test
public void testFunctionEmptyStringResultDecode() {

    Function function = new Function("test",
            Collections.<Type>emptyList(),
            Collections.<TypeReference<?>>singletonList(new TypeReference<Utf8String>() {
            }));
    List<Type> utf8Strings = FunctionReturnDecoder.decode(
            "0x0000000000000000000000000000000000000000000000000000000000000020"
                    + "0000000000000000000000000000000000000000000000000000000000000000",
            function.getOutputParameters());
    assertThat((String) utf8Strings.get(0).getValue(), is(""));
}