@Test
public void toArray() {

    ScriptHash sh = new ScriptHash("23ba2703c53263e8d6e522dc32203339dcd8eee9");
    byte[] expected = ArrayUtils.reverseArray(Numeric.hexStringToByteArray(
            "23ba2703c53263e8d6e522dc32203339dcd8eee9"));
    assertArrayEquals(expected, sh.toArray());
}