public void complicatedEntityEquals() {
Set<Animal> animals = new HashSet<Animal>();
animals.add(new Animal("cat"));
animals.add(new Animal("dog"));
animals.add(new Animal("sneake"));
ComplicatedPerson person = new ComplicatedPerson("John", animals);
ComplicatedPerson proxy = database.save(person);
Assert.assertEquals(person, proxy);
Assert.assertEquals(proxy, person);
database.delete(proxy);
}