SendReport extends BaseTrackingReport { public void setSendDate(Date sendDate) { _sendDate = sendDate; } SendReport(); Date getSendDate(); void setSendDate(Date sendDate); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void expectThatGettingAndSettingValues_WillReturnSame() { SendReport sendReport = new SendReport(); sendReport.setEmailAddress(EMAIL); sendReport.setCampaignId(CAMPAIGN_ID); sendReport.setContactId(CONTACT_ID); sendReport.setActivityType(TYPE); sendReport.setSendDate(DATE); runAssertions(sendReport); }
@Test public void expectThatSerializing_WillRetainValues() { SendReport sendReport = new SendReport(); sendReport.setEmailAddress(EMAIL); sendReport.setCampaignId(CAMPAIGN_ID); sendReport.setContactId(CONTACT_ID); sendReport.setActivityType(TYPE); sendReport.setSendDate(DATE); SendReport out = SerializationUtils.roundtrip(sendReport); runAssertions(out); }