}
@Test
public void testInstalledPackageSetEquality() throws Exception {
Consumer a = new Consumer();
a.addInstalledProduct(new ConsumerInstalledProduct("a", "Product A"));
a.addInstalledProduct(new ConsumerInstalledProduct("b", "Product B"));
a.addInstalledProduct(new ConsumerInstalledProduct("c", "Product C"));
Consumer b = new Consumer();
b.addInstalledProduct(new ConsumerInstalledProduct("a", "Product A"));
b.addInstalledProduct(new ConsumerInstalledProduct("b", "Product B"));
b.addInstalledProduct(new ConsumerInstalledProduct("c", "Product C"));
Consumer c = new Consumer();
c.addInstalledProduct(new ConsumerInstalledProduct("a", "Product A"));
c.addInstalledProduct(new ConsumerInstalledProduct("c", "Product C"));
Consumer d = new Consumer();
d.addInstalledProduct(new ConsumerInstalledProduct("a", "Product A"));
d.addInstalledProduct(new ConsumerInstalledProduct("b", "Product B"));
d.addInstalledProduct(new ConsumerInstalledProduct("d", "Product D"));
assertEquals(a.getInstalledProducts(), b.getInstalledProducts());
assertFalse(a.getInstalledProducts().equals(c.getInstalledProducts()));
assertFalse(a.getInstalledProducts().equals(d.getInstalledProducts()));
}