/**
* Test of toElement method, of class org.spw.volunteer.report.xml.VolunteerDetailsFundraisingXmlReport.
*/
public void testToElement() throws Exception{
System.out.println("toElement");
ProgramController programCtrl = new ProgramController();
// Create
Volunteer volunteer = new Volunteer();
volunteer.setIdContact(TEST_ID);
volunteer.setFirstName(getName());
volunteer.setLastName(getName());
volunteer.setTypeVolunteer("Accepted");
volunteer.setYearApplyingFor(1900);
VolunteerApplication application = new VolunteerApplication();
application.setIdApplication(TEST_ID);
application.setProgram(programCtrl.getPrograms().get(0));
application.setAcceptanceFeeReceived(new Date());
volunteer.setApplication(application);
for (int i=1; i < 5; i++) {
Contribution contrib = new Contribution();