@Test
public void serialize() throws IOException {

    ByteArrayOutputStream outStream = new ByteArrayOutputStream();
    BinaryWriter writer = new BinaryWriter(outStream);
    new ScriptHash("23ba2703c53263e8d6e522dc32203339dcd8eee9").serialize(writer);
    byte[] actual = outStream.toByteArray();
    byte[] expected = ArrayUtils.reverseArray(Numeric.hexStringToByteArray(
            "23ba2703c53263e8d6e522dc32203339dcd8eee9"));
    assertArrayEquals(expected, actual);
}