@Test
public void testExtract() throws IOException, JAXBException {

    
    RulesExtractor e = new RulesExtractor();
    Reader r = openFile("/DemoDAM.yml");
    Map<String, MonitoringRules> extractedRules = e.extract(r);
    
    assertEquals(2, extractedRules.size());
    assertEquals(6, extractedRules.get("java_ee_server").getMonitoringRules().size());
    assertEquals(4, extractedRules.get("db").getMonitoringRules().size());
}