public void testButtonValidateBottom_action() {
System.out.println("buttonValidateBottom_action");
EditMock instance = new EditMock();
Contact contact = new Contact();
contact.setFirstName(this.getName());
Donation donation = new Donation();
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 resultDonation = donationCtrl.read(donation.getIdDonation());
assertEquals(donation, resultDonation);
assertEquals(contact, resultDonation.getDonor());
assertEquals(this.getName(), resultDonation.getDonor().getFirstName());
ContactController contactCtrl = new ContactController();
Contact resultContact = contactCtrl.read(contact.getIdContact());
assertTrue(resultContact.getDonations().contains(donation));
assertEquals(1, resultContact.getDonations().size());
}