protected void setUp() throws Exception { SAXParserFactory saxParserFactory = SAXParserFactory.newInstance(); m_parser = saxParserFactory.newSAXParser(); String xml = generateValidTestXml(); m_inputStream = new ByteArrayInputStream(xml.getBytes()); }