@Test
public void testmatchingofSplittingTopology() throws Exception {

    ServiceTemplateId serviceTemplateId = new ServiceTemplateId("http://opentosca.org/servicetemplates", "Abstract_PHPApp_MySQLDB_MotivatingScenario_Splitting-split", false);
    assertTrue(this.repository.exists(serviceTemplateId));
    final TServiceTemplate serviceTemplate = repository.getElement(serviceTemplateId);
    TTopologyTemplate topologyTemplateMatching = serviceTemplate.getTopologyTemplate();
    List<String> expectedIds = Arrays.asList("PHP-5-WebApplication", "Java7", "MySQL-DB", "PHP-5-Module", "Apache-2.4", "Ubuntu-14.04-VM-OnPremiseIAAS", "OpenStack-Liberty-12-OnPremiseIAAS", "AmazonBeanstalk", "AmazonRDS");
    List<TNodeTemplate> NodeTemplates = splitting.hostMatchingWithDefaultHostSelection(topologyTemplateMatching).getNodeTemplateOrRelationshipTemplate().stream().filter(t -> t instanceof TNodeTemplate).map(TNodeTemplate.class::cast).collect(Collectors.toList());
    List<String> Ids = new ArrayList<>();
    for (TNodeTemplate nodeTemplate : NodeTemplates) {
        Ids.add(nodeTemplate.getId());
    }
    assertEquals(expectedIds, Ids);
}