@Test
public void testSimpleMatchingProp() throws Exception{

    ToscaParser parser = new ToscaParserSupplier().get();
    assertNotNull(parser);
    ParsingResult<ArchiveRoot> pr = parser.parseFile(Paths.get(Resources.getResource("aams/matchingProp.yml").toURI()));
    Topology t = pr.getResult().getTopology();
    assertNotNull(t);
    NodeTemplate offering = t.getNodeTemplates().get("my_app");
    assertNotNull(offering);
    IndexedNodeType reqModule = pr.getResult().getNodeTypes().get("moduleReq");
    assertNotNull(reqModule);
    Matchmaker mm = new Matchmaker();
    Map<String, HashSet<String>> matchmakeRes = mm.match(pr.getResult().getNodeTypes(), t.getNodeTemplates());
    assertNotNull(matchmakeRes);
    assertEquals(1, matchmakeRes.size());
    assertEquals(1, matchmakeRes.get("moduleReq").size());
    AbstractPropertyValue offProp = offering.getProperties().get("num_cpus");
    assertNotNull(offProp);
    PropertyDefinition reqProp = reqModule.getProperties().get("num_cpus");
    assertNotNull(reqProp);
}