@Test
public void getScriptHashFromWitness2() {

    // Test with script hash generated by neon-js.
    byte[] invocationScript = Numeric.hexStringToByteArray(
            "4051c2e6e2993c6feb43383131ed2091f4953747d3e16ecad752cdd90203a992dea0273e98c8cd09e9bfcf2dab22ce843429cdf0fcb9ba4ac93ef1aeef40b20783");
    byte[] verificationScript = Numeric.hexStringToByteArray(
            "21031d8e1630ce640966967bc6d95223d21f44304133003140c3b52004dc981349c9ac");
    Witness witness = new Witness(invocationScript, verificationScript);
    assertArrayEquals(
            Numeric.hexStringToByteArray("35b20010db73bf86371075ddfba4e6596f1ff35d"),
            witness.getScriptHash().toArray()
    );
}