@Test
public void testgetSuccessor() throws Exception {

    TNodeTemplate nt1 = topologyTemplate.getNodeTemplateOrRelationshipTemplate()
        .stream()
        .filter(x -> x instanceof TNodeTemplate)
        .map(TNodeTemplate.class::cast)
        .filter(nt -> nt.getId().equals("NT1"))
        .findAny()
        .get();
    TNodeTemplate nt2 = topologyTemplate.getNodeTemplateOrRelationshipTemplate()
        .stream()
        .filter(x -> x instanceof TNodeTemplate)
        .map(TNodeTemplate.class::cast)
        .filter(nt -> nt.getId().equals("NT1_3"))
        .findAny()
        .get();
    List<TNodeTemplate> expectedNodes = new ArrayList<>();
    expectedNodes.add(nt2);
    assertEquals(expectedNodes, splitting.getHostedOnSuccessorsOfNodeTemplate(topologyTemplate2, nt1));
}