Evidence implements Serializable { @Override public String toString() { return "Evidence{" + "type=" + type + ",\n eventCode=" + eventCode + ",\n eventReason=" + eventReason + ",\n issuer=" + issuer + ",\n evidenceIdentifier=" + evidenceIdentifier + ",\n timestamp=" + timestamp + ",\n sender=" + sender + ",\n receiver=" + receiver + ",\n documentTypeIdentifier=" + documentTypeIdentifier + ",\n documentIdentifier=" + documentIdentifier + ",\n issuerPolicy=" + issuerPolicy + ",\n digest=" + digest + ",\n messageIdentifier=" + messageIdentifier + ",\n transportProtocol=" + transportProtocol + ",\n transmissionRole=" + transmissionRole + ",\n originalReceipts=" + originalReceipts + '}'; } private  Evidence(); private  Evidence(EvidenceTypeInstance type, EventCode eventCode, EventReason eventReason, String issuer,
                     SimpleIdentifier evidenceIdentifier, Date timestamp, ParticipantIdentifier sender,
                     ParticipantIdentifier receiver, DocumentTypeIdentifier documentTypeIdentifier,
                     SimpleIdentifier documentIdentifier, String issuerPolicy, Digest digest,
                     SimpleIdentifier messageIdentifier, TransportProtocol transportProtocol,
                     TransmissionRole transmissionRole,
                     List<Receipt> originalReceipts); static Evidence newInstance(); EvidenceTypeInstance getType(); Evidence type(EvidenceTypeInstance type); EventCode getEventCode(); Evidence eventCode(EventCode eventCode); EventReason getEventReason(); Evidence eventReason(EventReason eventReason); String getIssuer(); Evidence issuer(String issuer); SimpleIdentifier getEvidenceIdentifier(); Evidence evidenceIdentifier(SimpleIdentifier evidenceIdentifier); Date getTimestamp(); Evidence timestamp(Date timestamp); Evidence header(Header header); ParticipantIdentifier getSender(); Evidence sender(ParticipantIdentifier sender); ParticipantIdentifier getReceiver(); Evidence receiver(ParticipantIdentifier receiver); DocumentTypeIdentifier getDocumentTypeIdentifier(); Evidence documentTypeIdentifier(DocumentTypeIdentifier documentTypeIdentifier); SimpleIdentifier getDocumentIdentifier(); Evidence documentIdentifier(SimpleIdentifier documentIdentifier); String getIssuerPolicy(); Evidence issuerPolicy(String issuerPolicy); Digest getDigest(); Evidence digest(Digest digest); SimpleIdentifier getMessageIdentifier(); Evidence messageIdentifier(SimpleIdentifier messageIdentifier); TransportProtocol getTransportProtocol(); Evidence transportProtocol(TransportProtocol transportProtocol); TransmissionRole getTransmissionRole(); Evidence transmissionRole(TransmissionRole transmissionRole); List<Receipt> getOriginalReceipts(); Evidence originalReceipt(Receipt receipt); Evidence originalReceipts(List<Receipt> receipts); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void simpleToString() { Assert.assertTrue(EVIDENCE.toString().contains("Tender-2")); }