" <fx:Definition name='MySprite2'>",
" <d:Sprite/>",
" </fx:Definition>",
"</fx:Library>"
};
IMXMLLibraryNode node = getMXMLLibraryNode(code);
assertThat("getChildCount", node.getChildCount(), is(2));
assertThat("getDeclarationInstanceNodes", node.getDefinitionNodes().length, is(2));
assertThat("getDefinitionNodes[0]", node.getDefinitionNodes()[0].getDefinitionName(), is("MySprite1"));
assertThat("getDefinitionNodes[1]", node.getDefinitionNodes()[1].getDefinitionName(), is("MySprite2"));
}