@Test
public void testMatchmakerOutput() throws Exception {

    ToscaParser parser = new ToscaParserSupplier().get();
    assertNotNull(parser);
    ParsingResult<ArchiveRoot> aam = parser.parseFile(Paths.get(Resources.getResource("aams/atos_aam.yml").toURI()));
    ParsingResult<ArchiveRoot> offerings = parser.parseFile(Paths.get(Resources.getResource("aams/atos_offerings.yml").toURI()));
    Map<String, Pair<NodeTemplate, String>> offeringsToMatch = new HashMap<>();
    Map<String, NodeTemplate> offeringsNt =  offerings.getResult().getTopology().getNodeTemplates();
    for(String ntn : offeringsNt.keySet()){
        offeringsToMatch.put(ntn, new Pair<NodeTemplate, String>(offeringsNt.get(ntn), ntn));
    }
    Map<String, HashSet<String>> res = new Matchmaker().match(aam, offeringsToMatch);
    assertNotNull(res);
    assertEquals(res.get("webservices").size(), 1);
    assertEquals(res.get("db1").size(), 4);
    assertEquals(res.get("www").size(), 3);
}