@Test
public void st1HasTwoNodeTemplatesWithoutIncomingHostedOnRelationshipTemplate() throws Exception {

    List<String> expectedIds = Arrays.asList("NT1", "NT1_2");
    List<TNodeTemplate> expectedNodeTemplates = topologyTemplate.getNodeTemplateOrRelationshipTemplate().stream()
        .filter(x -> x instanceof TNodeTemplate)
        .map(TNodeTemplate.class::cast)
        .filter(nt -> expectedIds.contains(nt.getId()))
        .collect(Collectors.toList());
    List<TNodeTemplate> nodeTemplatesWithoutIncomingEdges = splitting.getNodeTemplatesWithoutIncomingHostedOnRelationships(topologyTemplate);
    assertEquals(expectedNodeTemplates, nodeTemplatesWithoutIncomingEdges);
}