infoSite.setInitialInfoSection(infoSection);
	public void testAuthorizedPrepareEditAnnouncement() {		super.setAuthorizedUser();		//set request path		setRequestPathInfo("teacher", "/announcementManagementAction");		//sets needed objects to session/request		addRequestParameter("method", "prepareEditAnnouncement");		//infoSection		InfoSection infoSection = new InfoSection("Seccao1deTFCI", new Integer(0), null);		//infoSite		InfoExecutionYear infoExecutionYear = new InfoExecutionYear("2002/2003");		InfoExecutionPeriod infoExecutionPeriod = new InfoExecutionPeriod("2 Semestre", infoExecutionYear);		InfoExecutionCourse infoExecutionCourse =			new InfoExecutionCourse(				"Trabalho Final de Curso I",				"TFCI",				"programa1",				new Double(1.5),				new Double(2),				new Double(1.5),				new Double(2),				infoExecutionPeriod);		InfoSite infoSite = new InfoSite(infoExecutionCourse);		infoSection.setInfoSite(infoSite);		infoSite.setInitialInfoSection(infoSection);		try {			Object args[] = new Object[1];			args[0] = infoSite;			GestorServicos manager = GestorServicos.manager();			List announcements =				(List) manager.executar(					super.getAuthorizedUser(),					"ReadAnnouncements",					args);			getSession().setAttribute(				SessionConstants.INFO_SITE_ANNOUNCEMENT_LIST,				announcements);		} catch (Exception exception) {			exception.printStackTrace();			fail("testAuthorizedPrepareEditAnnouncement");		}		addRequestParameter("index", "0");				//action perform		actionPerform();		//verify that there are no errors		verifyNoActionErrors();		//verifies forward		verifyForward("editAnnouncement");	}