@Test
public void duplicateDefinition() throws Exception {

    this.setRevisionTo("origin/plain");
    DefinitionsChildId old = new NodeTypeId("http://plain.winery.opentosca.org/nodetypes", "NodeTypeWithTwoKVProperties", false);
    DefinitionsChildId newId = new NodeTypeId("http://plain.winery.opentosca.org/nodetypes", "NodeTypeWithTwoKVPropertiesDuplicate", false);
    this.repository.duplicate(old, newId);
    assertTrue(this.repository.exists(old));
    assertTrue(this.repository.exists(newId));
}