   @Test
   public void testIterator() throws Exception {

      reader.setElemMatch(QName.valueOf("{mynamespace}state"));
      reader.setInput(new ClassPathResource("/dummyXml.xml"));

      int count = 0;
      for (Document document : reader) {
         count++;
         assertNotNull(((DomRawData)document.getRawData()).getDom());
      }
      assertEquals(2,count);
   }