}
@Test
public void testGuestListEquality() throws Exception {
Consumer a = new Consumer();
a.addGuestId(new GuestId("Guest A"));
a.addGuestId(new GuestId("Guest B"));
a.addGuestId(new GuestId("Guest C"));
Consumer b = new Consumer();
b.addGuestId(new GuestId("Guest A"));
b.addGuestId(new GuestId("Guest B"));
b.addGuestId(new GuestId("Guest C"));
Consumer c = new Consumer();
c.addGuestId(new GuestId("Guest A"));
c.addGuestId(new GuestId("Guest C"));
Consumer d = new Consumer();
d.addGuestId(new GuestId("Guest A"));
d.addGuestId(new GuestId("Guest B"));
d.addGuestId(new GuestId("Guest D"));
assertEquals(a.getGuestIds(), b.getGuestIds());
assertFalse(a.getGuestIds().equals(c.getGuestIds()));
assertFalse(a.getGuestIds().equals(d.getGuestIds()));
}