}
@Test
public void parseFullCoverageXmlFile() throws ParserConfigurationException, SAXException, IOException {
ResourceProxy root = parseContentXmlFile("full-coverage.xml", "/apps/full-coverage");
assertThat("full-coverage path", root.getPath(), is("/apps/full-coverage"));
assertThat("full-coverage properties.size", root.getProperties().size(), is(3));
assertThat("full-coverage properties[jcr:title]", root.getProperties(),
hasEntry("jcr:title", (Object) "Full coverage parent"));
assertThat("full-coverage children.size", root.getChildren().size(), is(2));
ResourceProxy parent1 = root.getChildren().get(0);
assertThat("parent-1 path", parent1.getPath(), is("/apps/full-coverage/parent-1"));
assertThat("parent-1 properties[jcr:title]", parent1.getProperties(),
hasEntry("jcr:title", (Object) "Parent 1"));
assertThat("parent-1 children.size", parent1.getChildren().size(), is(2));
ResourceProxy child11 = parent1.getChildren().get(0);
assertThat("child-1-1 path", child11.getPath(), is("/apps/full-coverage/parent-1/child-1-1"));
assertThat("child-1-1 properties[jcr:title]", child11.getProperties(),
hasEntry("jcr:title", (Object) "Child 1-1"));
}