announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("unexistingAnnouncement", date, site);
announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("unexistingAnnouncement", (Timestamp)date, site);
    public void testReadAnnouncementByTitleAndDateAndSite() {        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 excepcaoPersistencia) {            fail("testReadAnnouncementByTitleAndDateAndSite: readAnnouncementByTitleAndDateAndSite");        }        assertNotNull(announcement);        assertEquals(announcement.getTitle(), "announcement1deTFCI");//		assertEquals(announcement.getCreationDate(), date);//		assertEquals(announcement.getLastModifiedDate(), date);		assertEquals(announcement.getInformation(), "information1");		assertEquals(announcement.getSite(), site);		//read unexisting		announcement = null;		try {			persistentSupport.iniciarTransaccao();			announcement = persistentAnnouncement.readAnnouncementByTitleAndCreationDateAndSite("unexistingAnnouncement", date, site);			persistentSupport.confirmarTransaccao();		} catch(ExcepcaoPersistencia excepcaoPersistencia) {			fail("testReadAnnouncementByTitleAndDateAndSite: readAnnouncementByTitleAndDateAndSite");		}		assertNull(announcement);	}