ScriptHash extends NeoSerializable implements Comparable<ScriptHash> { @Override public byte[] toArray() { return super.toArray(); } ScriptHash();  ScriptHash(byte[] scriptHash);  ScriptHash(String scriptHash); @Override void deserialize(BinaryReader reader); @Override void serialize(BinaryWriter writer); @Override int getSize(); @Override byte[] toArray(); String toString(); String toAddress(); static ScriptHash fromAddress(String address); static ScriptHash fromScript(byte[] script); static ScriptHash fromPublicKey(byte[] encodedPublicKey); static ScriptHash fromPublicKeys(List<byte[]> encodedPublicKeys, int signingThreshold); static ScriptHash fromScript(String script); @Override int compareTo(ScriptHash o); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void toArray() { ScriptHash sh = new ScriptHash("23ba2703c53263e8d6e522dc32203339dcd8eee9"); byte[] expected = ArrayUtils.reverseArray(Numeric.hexStringToByteArray( "23ba2703c53263e8d6e522dc32203339dcd8eee9")); assertArrayEquals(expected, sh.toArray()); }