@Test
public void getArtifactTypeHierarchy() throws Exception {

    setRevisionTo("af529e513388dc9358a8f700757d8dc59aba3a55");
    ServiceTemplateId id = new ServiceTemplateId("http://winery.opentosca.org/test/servicetemplates/ponyuniverse/daspecifier", "DASpecificationTest", false);
    TTopologyTemplate topologyTemplate = this.repository.getElement(id).getTopologyTemplate();
    TNodeTemplate nodeTemplate = topologyTemplate.getNodeTemplate("westernequipment");
    List<TArtifactType> artifactTypes = DASpecification.getArtifactTypeHierarchy(DASpecification.getArtifactTypeOfDA(nodeTemplate.getDeploymentArtifacts().getDeploymentArtifact().get(0)));
    List<String> artifactTypeNames = new ArrayList<>();
    artifactTypes.stream().forEach(at -> artifactTypeNames.add(at.getName()));
    assertEquals(2, artifactTypes.size());
    assertTrue(artifactTypeNames.contains("WesternEquipment_Pony"));
    assertTrue(artifactTypeNames.contains("PonyEquipment"));
}