### Question:
ModelInspector { public IRuntimeModel parseModel(InputStream modelStream) throws ParseException, ParserConfigurationException, SAXException, IOException, TransformerException, BundleManagementException { IRuntimeModel runtimeModel=deploymentModelParser.parseModel(modelStream); return runtimeModel; } ModelInspector(APEProperties apeProperties); IRuntimeModel parseModel(InputStream modelStream); Set<URI> getComponentTypeJarURIsOfModel(IRuntimeModel model); Set<IRuntimeModel> getIRuntimeModelsOfModelURIs(Set<URI> modelURIs); Set<IComponentInstance> getIComponentInstancesOfModelURIs(Set<URI> modelURIs); Set<IComponentInstance> getIComponentInstancesOfIRuntimeModels(Set<IRuntimeModel> modelInstances); Set<URI> getLicenseURIsOfModels(Set<IRuntimeModel> modelInstances); Set<URI> getComponentTypeJarURIsOfModelURIs(Set<URI> modelURIs); Set<URI> getComponentTypeJarURIsOfModels(Set<IRuntimeModel> modelInstances); Set<URI> getModelURIsFromProperty(); Collection<URI> getPropertyReferredURIs(Set<IRuntimeModel> modelInstances);  }### Answer:
@Test public void testParseModel() throws BundleManagementException { try { Path testModel = Paths.get("tools/APE/src/test/resources/models/test_deployment_model.acs"); InputStream iStr = testModel.toUri().toURL().openStream(); IRuntimeModel runtimeModel = modelInspector.parseModel(iStr); System.out.println("instanceIds: " + Arrays.toString(runtimeModel.getComponentInstancesIDs())); System.out.println("Componenttypes used: "); for (IComponentInstance compInstance : runtimeModel.getComponentInstances()) { System.out.println(compInstance.getComponentTypeID() + " ["); String[] propKeys = runtimeModel.getComponentPropertyKeys(compInstance.getInstanceID()); for (String propKey : propKeys) { System.out.println( propKey + "=" + runtimeModel.getComponentProperty(compInstance.getInstanceID(), propKey)); } System.out.println("]"); } Set<URI> modelComponentJars = modelInspector.getComponentTypeJarURIsOfModel(runtimeModel); for (URI componentJarURI : modelComponentJars) { System.out.println(componentJarURI); } } catch (ParseException | IOException | ParserConfigurationException | SAXException | TransformerException e) { fail(e.getMessage()); } }