@Test
public void compareTwoDefinitionsWithDifferentVersions() {

    DefinitionsChildId newerVersion = new NodeTypeId("http://example.org/tosca/nodeTypes", "myNodeType_3.2.4-w7", false);
    DefinitionsChildId olderVersion = new NodeTypeId("http://example.org/tosca/nodeTypes", "myNodeType_3.2.4-w7-wip40", false);
    assertEquals(-1, olderVersion.compareTo(newerVersion));
    assertEquals(1, newerVersion.compareTo(olderVersion));
}