@Test
public void testDecodeIndexedStringValue() {

    Utf8String string = new Utf8String("some text");
    String encoded = TypeEncoder.encodeString(string);
    String hash = Hash.sha3(encoded);
    assertThat(FunctionReturnDecoder.decodeIndexedValue(
            hash,
            new TypeReference<Utf8String>() {}),
            IsEqual.<Type>equalTo(new Bytes32(Numeric.hexStringToByteArray(hash))));
}