{
File file = new File(Thread.currentThread().getContextClassLoader().getResource(resource).toURI());
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
Document document = factory.newDocumentBuilder().parse(file);
ServiceDeploymentParser parser = new ServiceDeploymentParser(document);
ServiceDeployment deployment = parser.parse();
assertNotNull(deployment);
ServiceMetaDataParser serviceParser = new ServiceMetaDataParser(deployment.getConfig());
List<ServiceMetaData> services = serviceParser.parse();
assertNotNull(services);