@Test
public void testClone() throws Exception {

    TTopologyTemplate topologyTemplate = new TTopologyTemplate();
    TNodeTemplate nt1 = new TNodeTemplate();
    TNodeTemplate nt2 = new TNodeTemplate();
    TNodeTemplate nt3 = new TNodeTemplate();
    nt1.setId("NT1");
    nt2.setId("NT2");
    nt3.setId("NT3");
    List<TEntityTemplate> entityTemplates = topologyTemplate.getNodeTemplateOrRelationshipTemplate();
    entityTemplates.add(nt1);
    entityTemplates.add(nt2);
    entityTemplates.add(nt3);
    TTopologyTemplate clone = BackendUtils.clone(topologyTemplate);
    List<TEntityTemplate> entityTemplatesClone = clone.getNodeTemplateOrRelationshipTemplate();
    assertEquals(entityTemplates, entityTemplatesClone);
}