@Test
public void testUpdateVersionOfNodeTemplate() throws Exception {

    TTopologyTemplate topologyTemplate = new TTopologyTemplate();
    TNodeTemplate nt1 = new TNodeTemplate();
    TNodeTemplate nt2 = new TNodeTemplate();
    nt1.setId("java8_1.0-w1-wip1_3");
    nt1.setType(new QName("namespace", "java8_1.0-w1-wip1"));
    nt2.setId("java8_1.0-w2-wip2");
    nt2.setType(new QName("namespace", "java8_1.0-w2-wip2"));
    List<TEntityTemplate> entityTemplates = topologyTemplate.getNodeTemplateOrRelationshipTemplate();
    entityTemplates.add(nt1);
    TTopologyTemplate resultTopologyTemplate = BackendUtils.updateVersionOfNodeTemplate(topologyTemplate, "java8_1.0-w1-wip1_3", "{namespace}java8_1.0-w2-wip2");
    List<TEntityTemplate> entityTemplatesClone = resultTopologyTemplate.getNodeTemplateOrRelationshipTemplate();
    assertEquals(entityTemplates.get(0).getTypeAsQName().toString(), "{namespace}java8_1.0-w2-wip2");
}