@Test
public void callFunctionReturningNonInt() throws IOException {

    setUpWireMockForCall("invokefunction", "invokescript_registercandidate.json",
            NEO_SCRIPT_HASH.toString(), NEP5_TOTALSUPPLY);
    SmartContract sc = new SmartContract(NEO_SCRIPT_HASH, this.neow);
    expectedException.expect(UnexpectedReturnTypeException.class);
    expectedException.expectMessage(new StringContains(StackItemType.BOOLEAN.jsonValue()));
    sc.callFuncReturningInt(NEP5_TOTALSUPPLY);
}