@Test
public void getHashData() {

    byte[] magicNumber = new byte[]{0x4e, 0x45, 0x4F, 0x00};
    NeoConfig.setMagicNumber(magicNumber);
    List<Signer> signers = new ArrayList<>();
    signers.add(Signer.feeOnly(account1));
    Transaction tx = new Transaction(neow, (byte) 0,
            0L,
            0L,
            signers,
            0L,
            0L,
            new ArrayList<>(),
            new byte[]{1, 2, 3},
            new ArrayList<>());
    byte[] txHexWithoutWitness = Numeric.hexStringToByteArray(
            "000000000000000000000000000000000000000000000000000123ba2703c53263e8d6e522dc32203339dcd8eee9000003010203");
    byte[] expectedData = ArrayUtils.concatenate(magicNumber, txHexWithoutWitness);
    assertThat(tx.getHashData(), is(expectedData));
}