SentToContactList implements Serializable { public void setId(String id) { _id = id; } SentToContactList(); String getId(); void setId(String id); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void expectThatGettingAndSettingValues_WillReturnSame() { SentToContactList sentToContactList = new SentToContactList(); sentToContactList.setId(ID); runAssertions(sentToContactList); }
@Test public void expectThatSerializing_WillRetainValues() { SentToContactList sentToContactList = new SentToContactList(); sentToContactList.setId(ID); SentToContactList out = SerializationUtils.roundtrip(sentToContactList); runAssertions(out); }