EditMock instance = new EditMock();
Contact contact = new Contact();
contact.setIdContact(id);
contact.setFirstName(this.getName());
Donation donation = new Donation();
donation.setIdDonation(id);
donation.setProposalTitle(this.getName());
donation.setDonor(contact);
java.util.List donations = new ArrayList();
donations.add(instance.getDonation());
contact.setDonations(donations);
instance.setContact(contact);
instance.setDonation(donation);
String expResult = "success";
String result = instance.buttonValidateBottom_action();
assertEquals(expResult, result);
//check the insertion of the entities
DonationController donationCtrl = new DonationController();
donation = donationCtrl.read(id);
assertEquals(donation.getIdDonation(), id);
assertEquals(donation.getDonor(), contact);
assertEquals(donation.getDonor().getIdContact(), id);
assertEquals(donation.getDonor().getFirstName(), this.getName());
ContactController contactCtrl = new ContactController();
contact = contactCtrl.read(id);
assertTrue(contact.getDonations().contains(donation));
}