OpenReport extends BaseTrackingReport { public void setOpenDate(Date openDate) { _openDate = openDate; } OpenReport(); Date getOpenDate(); void setOpenDate(Date openDate); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void expectThatGettingAndSettingValues_WillReturnSame() { OpenReport openReport = new OpenReport(); openReport.setEmailAddress(EMAIL); openReport.setCampaignId(CAMPAIGN_ID); openReport.setContactId(CONTACT_ID); openReport.setActivityType(TYPE); openReport.setOpenDate(DATE); runAssertions(openReport); }
@Test public void expectThatSerializing_WillRetainValues() { OpenReport openReport = new OpenReport(); openReport.setEmailAddress(EMAIL); openReport.setCampaignId(CAMPAIGN_ID); openReport.setContactId(CONTACT_ID); openReport.setActivityType(TYPE); openReport.setOpenDate(DATE); OpenReport out = SerializationUtils.roundtrip(openReport); runAssertions(out); }