@Test
public void emptyPropertiesAndPoliciesListsRemovedFromNodeTemplate() {

    TTopologyTemplate topologyTemplate = new TTopologyTemplate();
    TNodeTemplate nodeTemplate = new TNodeTemplate();
    topologyTemplate.getNodeTemplateOrRelationshipTemplate().add(nodeTemplate);
    nodeTemplate.setProperties(new TEntityTemplate.Properties());
    nodeTemplate.setPolicies(new TPolicies());
    assertNotNull(((TNodeTemplate) topologyTemplate.getNodeTemplateOrRelationshipTemplate().get(0)).getPolicies());
    assertNotNull(((TNodeTemplate) topologyTemplate.getNodeTemplateOrRelationshipTemplate().get(0)).getProperties());
    // preconditions fulfilled
    RemoveEmptyLists removeEmptyLists = new RemoveEmptyLists();
    removeEmptyLists.removeEmptyLists(topologyTemplate);
    
    assertNull(((TNodeTemplate) topologyTemplate.getNodeTemplateOrRelationshipTemplate().get(0)).getPolicies());
    assertNull(((TNodeTemplate) topologyTemplate.getNodeTemplateOrRelationshipTemplate().get(0)).getProperties());
}