@Test
@SuppressWarnings("unchecked")
public void testGroupsAsTopologyChild() throws Exception {

    String adp = new Scanner(new File(Resources.getResource("nuro/iaas/nuro_adp-iaas.yml").toURI())).useDelimiter("\\Z").next();
    dam = damGenerator.generateDam(adp);
    template = YamlParser.load(dam);
    testMetadataTemplate(template);
    assertTrue(template.containsKey(DamGenerator.TOPOLOGY_TEMPLATE));
    Map<String, Object> topologyTemplate =
            (Map<String, Object>) template.get(DamGenerator.TOPOLOGY_TEMPLATE);
    assertTrue(topologyTemplate.containsKey(DamGenerator.GROUPS));
    Map<String, Object> topologyGroups =
            (Map<String, Object>) topologyTemplate.get(DamGenerator.GROUPS);
    assertNotNull(topologyGroups);
    assertEquals(topologyGroups.size(), 8);
    assertTrue(topologyGroups.containsKey("operation_www"));
    assertTrue(topologyGroups.containsKey("operation_db"));
    assertTrue(topologyGroups.containsKey("add_brooklyn_location_Amazon_EC2_m1_small_eu_central_1"));
    assertTrue(topologyGroups.containsKey("add_brooklyn_location_Amazon_EC2_m4_10xlarge_eu_west_1"));
    assertTrue(topologyGroups.containsKey("monitoringInformation"));
    assertTrue(topologyGroups.containsKey("sla_gen_info"));
    assertTrue(topologyGroups.containsKey("seaclouds_monitoring_configuration"));
    testSeaCloudsPolicy(topologyGroups);
}