announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("announcement1deTFCI", date, this.site);
announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("announcement1deTFCI",(Timestamp) date, this.site);
    public void testDeleteAnnouncement() {        IAnnouncement announcement = null;		//read existing        		Calendar calendar = Calendar.getInstance();		calendar.set(Calendar.YEAR, 2003);		calendar.set(Calendar.MONTH, Calendar.JANUARY);		calendar.set(Calendar.DATE, 21);		calendar.set(Calendar.HOUR_OF_DAY, 0);		calendar.set(Calendar.MINUTE, 0);		calendar.set(Calendar.SECOND, 0);		calendar.set(Calendar.MILLISECOND, 0);				Date date = calendar.getTime();		        try {            persistentSupport.iniciarTransaccao();			announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("announcement1deTFCI", date, this.site);            persistentSupport.confirmarTransaccao();        } catch(ExcepcaoPersistencia ex) {            fail("testDeleteAnnouncement: readAnnouncementByTitleAndCreationDateAndSite existing");        }        assertNotNull(announcement);		//erase it        try {            persistentSupport.iniciarTransaccao();            persistentAnnouncement.delete(announcement);            persistentSupport.confirmarTransaccao();        } catch(ExcepcaoPersistencia ex2) {            fail("testDeleteAnnouncement: delete");        }                //read it again		announcement = null;		try {			persistentSupport.iniciarTransaccao();			announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("announcement1deTFCI", date, this.site);			persistentSupport.confirmarTransaccao();		} catch(ExcepcaoPersistencia ex) {			fail("testDeleteAnnouncement: readAnnouncementByTitleAndCreationDateAndSite unexisting");		}		assertNull(announcement);    }