@Test
public void testSerialize() {

    final String key = "035fdb1d1f06759547020891ae97c729327853aeb1256b6fe0473bc2e9fa42ff50";
    final ECPublicKey ecPubKey = new ECPublicKey(Numeric.hexStringToByteArray(key));
    VerificationScript script = new VerificationScript(ecPubKey);
    byte[] expected = Numeric.hexStringToByteArray(""
            + Numeric.toHexStringNoPrefix((byte) VERIFICATION_SCRIPT_SIZE) // Var Int
            + OpCode.PUSHDATA1.toString() + "21"  // PUSHDATA 33 bytes
            + key // public key
            + OpCode.PUSHNULL.toString()
            + OpCode.SYSCALL.toString()
            + InteropServiceCode.NEO_CRYPTO_VERIFYWITHECDSASECP256R1.getHash()
    );
    assertArrayEquals(expected, script.toArray());
}