@Test
public void testToString() throws Exception {

    TransactionWitness w1 = new TransactionWitness(0);
    assertEquals("", w1.toString());
    TransactionWitness w2 = new TransactionWitness(2);
    assertEquals("NULL NULL", w2.toString());
    TransactionWitness w3 = new TransactionWitness(3);
    w3.setPush(0, Utils.HEX.decode("123aaa"));
    w3.setPush(1, Utils.HEX.decode("123bbb"));
    w3.setPush(2, Utils.HEX.decode("123ccc"));
    assertEquals("123aaa 123bbb 123ccc", w3.toString());
}