@Test
public void testCompareToDifferentSubClass() {

    DefinitionsChildId serviceTemplate = new ServiceTemplateId("http://example.org/tosca/serviceTemplates", "myDefinition", false);
    DefinitionsChildId nodeType = new NodeTypeId("http://example.org/tosca/nodeTypes", "myDefinition", false);
    assertEquals("ServiceTemplate".compareTo("NodeType"), serviceTemplate.compareTo(nodeType));
}