ForwardReport extends BaseTrackingReport { public void setForwardDate(Date forwardDate) { _forwardDate = forwardDate; } ForwardReport(); Date getForwardDate(); void setForwardDate(Date forwardDate); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void expectThatGettingAndSettingValues_WillReturnSame() { ForwardReport forwardReport = new ForwardReport(); forwardReport.setEmailAddress(EMAIL); forwardReport.setActivityType(TYPE); forwardReport.setContactId(CONTACT_ID); forwardReport.setCampaignId(CAMPAIGN_ID); forwardReport.setForwardDate(DATE); runAssertions(forwardReport); }
@Test public void expectThatSerializing_WillRetainValues() { ForwardReport forwardReport = new ForwardReport(); forwardReport.setEmailAddress(EMAIL); forwardReport.setActivityType(TYPE); forwardReport.setContactId(CONTACT_ID); forwardReport.setCampaignId(CAMPAIGN_ID); forwardReport.setForwardDate(DATE); ForwardReport out = SerializationUtils.roundtrip(forwardReport); runAssertions(out); }