assertEquals(query.getTerms()[0].isRequred(), true);
assertEquals(query.getTerms()[0].isRequred(), false);
    public void testOr() throws Exception {        IngridQuery query = QueryStringParser.parse("wasser OR erde");        assertEquals(query.getTerms().length, 2);        assertEquals(query.getTerms()[0].isRequred(), true);        assertEquals(query.getTerms()[1].isRequred(), false);                query = new IngridQuery();        query.addTerm(new TermQuery(true, false, "wasser"));        ClauseQuery cq = new ClauseQuery(true, false);        cq.addField(new FieldQuery(false, false, "type", "value1"));        cq.addField(new FieldQuery(false, false, "type", "value2"));        query.addClause(cq);    }