// now extract the source nodes
doc = SourceNodeGenaratorVisitor.extractSourceNodes(doc);
// check the staging tables
MappingBaseNode root = doc.getRootNode();
assertTrue(root instanceof MappingSourceNode);
MappingSourceNode source = (MappingSourceNode)root;
assertEquals("licenseSource", source.getResultName()); //$NON-NLS-1$
List list = source.getStagingTables();
assertEquals(2, list.size());
assertEquals("testTempGroup1", list.get(0)); //$NON-NLS-1$
assertEquals("testTempGroup2", list.get(1)); //$NON-NLS-1$
MappingBaseNode node = (MappingBaseNode)source.getNodeChildren().get(0);
assertTrue(node instanceof MappingElement);
MappingElement element = (MappingElement)node;
// make sure name matches and caridinality of root is reset; as there can be only one root
assertEquals("license", element.getName()); //$NON-NLS-1$