@Override
    public String toString() {
        MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(this);
        helper.addValue(toString(null, null));
        return helper.toString();
    }
@Test
    public void testToString() {
        Transaction tx = FakeTxBuilder.createFakeTx(TESTNET.network());
        int lengthWithAddresses = tx.toString(null, BitcoinNetwork.TESTNET).length();
        int lengthWithoutAddresses = tx.toString(null, null).length();
        assertTrue(lengthWithAddresses > lengthWithoutAddresses);
    }