@Test
public void capability_should_match_when_type_is_present_in_derived_from() throws Exception {

    Map<String, Capability> compatibleCapabilities = service.getCompatibleCapabilityByType(nodeTemplate, "alien.capability.test.Database");
    assertThat(compatibleCapabilities).hasSize(1);
    assertThat(compatibleCapabilities).containsKeys("db_endpoint");
}