@Test
public void asStream() throws Exception {

    Document document = DOMParserUtil.getDocument(XML);
    final NodeList mainNodeList = document.getElementsByTagName("Main");
    commonCheckNodeStream(mainNodeList);
    final NodeList childNodesList = mainNodeList.item(0).getChildNodes();
    commonCheckNodeStream(childNodesList);
    final NodeList innerNodesList = childNodesList.item(0).getChildNodes();
    commonCheckNodeStream(innerNodesList);
}