query.add(new Date(0), new Date());
query.add(LogMatch.MATCH_WITH_COMMENT,BasicMatch.MATCH_TYPE_EQUALS,"Test");
    public void test02AddAndCheckLogEvents() throws Exception {        log.debug(">test02AddAndCheckLogEvents()");        cacheAdmin.log(admin, "CN=TEST".hashCode(), LogEntry.MODULE_LOG, new Date(), null, null, LogEntry.EVENT_ERROR_UNKNOWN, "Test");        Query query = new Query(Query.TYPE_LOGQUERY);        query.add(new Date(0), new Date());        Collection result = cacheAdmin.query(query, "", "caid=" + Integer.toString("CN=TEST".hashCode()));        Iterator iter = result.iterator();        boolean found = false;        while (iter.hasNext()) {            LogEntry entry = (LogEntry) iter.next();            if ( (entry.getComment() != null) && (entry.getComment().equals("Test")) ) {                found = true;            }        }        assertTrue("Couldn't retrieve correct log data from database.", found);        log.debug("<test02AddAndCheckLogEvents()");    }