logger.addHandler(consoleHandler);
// read in XML file and parse to content handler
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser parser = factory.newSAXParser();
ParserAdapter adapter = new ParserAdapter(parser.getParser());
adapter.setContentHandler(documentFilter);
adapter.parse(requestSource);
assertEquals(1, contentHandler.filters.size());
Filter f = (Filter)contentHandler.filters.get(0);
assertTrue(f instanceof BinaryLogicOperator);
assertEquals(FilterType.LOGIC_OR, Filters.getFilterType(f));