ModifyTransactionRequest extends TransactionRequest<ModifyTransactionRequest> implements SliceableMessage { @Override protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) { return super.addToStringAttributes(toStringHelper).add("modifications", modifications.size()) .add("protocol", protocol); } ModifyTransactionRequest(final TransactionIdentifier target, final long sequence, final ActorRef replyTo,
        final List<TransactionModification> modifications, final PersistenceProtocol protocol); Optional<PersistenceProtocol> getPersistenceProtocol(); List<TransactionModification> getModifications();  }
@Test public void addToStringAttributesTest() { final MoreObjects.ToStringHelper result = OBJECT.addToStringAttributes(MoreObjects.toStringHelper(OBJECT)); Assert.assertTrue(result.toString().contains("modifications=1")); Assert.assertTrue(result.toString().contains("protocol=" + PROTOCOL)); }