@Test
public void testGetUnsignedTransaction() throws Throwable {

    setUpWireMockForCall("getblockcount", "getblockcount_1000.json");
    setUpWireMockForCall("invokescript", "invokescript_transfer.json");
    Wallet w = Wallet.withAccounts(account1);
    Transaction tx = new TransactionBuilder(neow)
            .wallet(w)
            .script(Numeric.hexStringToByteArray(SCRIPT_NEO_INVOKEFUNCTION_NAME))
            .signers(Signer.calledByEntry(account1.getScriptHash()))
            .getUnsignedTransaction();
    assertThat(tx.getVersion(), is((byte) 0));
    assertThat(tx.getSigners(), hasSize(1));
    assertThat(tx.getSigners().get(0), is(Signer.calledByEntry(account1.getScriptHash())));
    assertThat(tx.getWitnesses(), hasSize(0));
}