@Test
public void invokingFunctionPerformsCorrectCall_WithoutParameters() throws IOException {

    setUpWireMockForCall("invokefunction",
            "invokefunction_name.json",
            NeoToken.SCRIPT_HASH.toString(),
            "name",
            "[\"721e1376b75fe93889023d47832c160fcc5d4a06\"]"
    );
    Wallet w = Wallet.withAccounts(account1);
    NeoInvokeFunction i = new NeoToken(neow)
            .callInvokeFunction("name");
    assertThat(i.getResult().getStack().get(0).asByteString().getAsString(), Matchers.is("NEO"));
    assertThat(i.getResult().getScript(), Matchers.is(SCRIPT_NEO_INVOKEFUNCTION_NAME));
}