/**
* 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();
VolunteerController voCtrl = new VolunteerController();
// Create
Volunteer volunteer = new Volunteer();
volunteer.setFirstName(getName());
volunteer.setLastName(getName());
volunteer.setTypeVolunteer("Accepted");
volunteer.setYearApplyingFor(1900);
voCtrl.create(volunteer);
VolunteerApplication application = new VolunteerApplication();
List<Program> programs = programCtrl.getPrograms();
assertFalse("No programs, must have at leat one for this test.",
programs.size() == 0);
Program program = programs.get(0);
application.setProgram(program);
application.setAcceptanceFeeReceived(new Date());