final long beginProfiles = database.countClusterElements("Profile");
beginCities = database.countClusterElements("City");
Country italy = new Country("Italy");
Profile garibaldi = new Profile("GGaribaldi", "Giuseppe", "Garibaldi", null);
garibaldi.setLocation(new Address("Residence", new City(italy, "Rome"), "Piazza Navona, 1"));
Profile bonaparte = new Profile("NBonaparte", "Napoleone", "Bonaparte", garibaldi);
bonaparte.setLocation(new Address("Residence", garibaldi.getLocation().getCity(), "Piazza di Spagna, 111"));
database.save(bonaparte);
Assert.assertEquals(database.countClusterElements("Profile"), beginProfiles + 2);
}