@Test
public void testGetSigningThreshold() {

    String key = OpCode.PUSHDATA1.toString() + "21"
            + "02028a99826edc0c97d18e22b6932373d908d323aa7f92656a77ec26e8861699ef";
    // Signing threshold: 2
    StringBuilder sb = new StringBuilder();
    sb.append(OpCode.PUSH2.toString()); // signing threshold
    IntStream.range(0, 3).forEach(i -> sb.append(key));
    sb.append(OpCode.PUSH3.toString()); // number of public keys
    sb.append(OpCode.PUSHNULL.toString());
    sb.append(OpCode.SYSCALL.toString());
    sb.append(InteropServiceCode.NEO_CRYPTO_CHECKMULTISIGWITHECDSASECP256R1.getHash());
    byte[] script = Numeric.hexStringToByteArray(sb.toString());
    assertEquals(2, new VerificationScript(script).getSigningThreshold());
    // Signing threshold: 127
    StringBuilder sb2 = new StringBuilder();
    sb2.append(OpCode.PUSHINT8.toString()); // signing threshold
    sb2.append("7f"); // signing threshold
    IntStream.range(0, 127).forEach(i -> sb2.append(key));
    sb2.append(OpCode.PUSHINT8.toString()); // signing threshold
    sb2.append("7f"); // number of public keys
    sb2.append(OpCode.PUSHNULL.toString());
    sb2.append(OpCode.SYSCALL.toString());
    sb2.append(InteropServiceCode.NEO_CRYPTO_CHECKMULTISIGWITHECDSASECP256R1.getHash());
    script = Numeric.hexStringToByteArray(sb2.toString());
    assertEquals(127, new VerificationScript(script).getSigningThreshold());
}