ExistsTransactionSuccess extends TransactionSuccess<ExistsTransactionSuccess> { @Override protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) { return super.addToStringAttributes(toStringHelper).add("exists", exists); } ExistsTransactionSuccess(final TransactionIdentifier target, final long sequence, final boolean exists); boolean getExists();  }
@Test public void addToStringAttributesTest() { final MoreObjects.ToStringHelper result = OBJECT.addToStringAttributes(MoreObjects.toStringHelper(OBJECT)); Assert.assertTrue(result.toString().contains("exists=" + EXISTS)); }