@Test
public void getPublicKeysFromSingleSigScript() {

    byte[] scriptBytes = Numeric.hexStringToByteArray(""
            + OpCode.PUSHDATA1.toString() + "21"// PUSHDATA1 and 33 bytes of key
            + "02028a99826edc0c97d18e22b6932373d908d323aa7f92656a77ec26e8861699ef" // key
            + OpCode.PUSHNULL.toString() // null message
            + OpCode.SYSCALL.toString()
            + InteropServiceCode.NEO_CRYPTO_VERIFYWITHECDSASECP256R1.getHash());
    VerificationScript s = new VerificationScript(scriptBytes);
    List<ECPublicKey> pubKeys = s.getPublicKeys();
    assertThat(pubKeys, hasSize(1));
    assertThat(Numeric.toHexStringNoPrefix(pubKeys.get(0).getEncoded(true)),
            is("02028a99826edc0c97d18e22b6932373d908d323aa7f92656a77ec26e8861699ef"));
}