### Question:
XmlUtils { public static List<XmlNode> findTemplateDocuments(final Path path, final PluginContext context) { final Collection<File> files = FileUtils.listFiles(path.toFile(), EssentialConst.XML_FILTER, true); final List<XmlNode> templateDocuments = new ArrayList<>(); for (File file : files) { final XmlNode xmlNode = parseXml(file.toPath()); if (xmlNode != null) { final XmlProperty property = xmlNode.getXmlPropertyByName(EssentialConst.NS_JCR_PRIMARY_TYPE); if (property != null && property.getSingleValue() != null && property.getSingleValue().equals(EssentialConst.NS_HIPPOSYSEDIT_TEMPLATETYPE)) { templateDocuments.add(xmlNode); } } } return templateDocuments; } private  XmlUtils(); static List<XmlNode> findTemplateDocuments(final Path path, final PluginContext context); static String xmlNodeToString(final XmlNode value); static XmlNode parseXml(final InputStream content); static XmlNode parseXml(final Path path);  }### Answer:
@Test public void testFindingDocuments() throws Exception { final List<XmlNode> templateDocuments = XmlUtils.findTemplateDocuments(getProjectRoot(), getContext()); final int expected = NAMESPACES_TEST_SET.size() - 1; assertEquals("expected " + expected + " templates", expected, templateDocuments.size()); }