@Test
public void testCompareToDifferentDefinitionsChildId() {

    String stId = "myDefinition";
    String otherStId = "myOtherDefinition";
    DefinitionsChildId serviceTemplate = new ServiceTemplateId("http://example.org/tosca/serviceTemplates", stId, false);
    DefinitionsChildId otherServiceTemplate = new ServiceTemplateId("http://example.org/tosca/serviceTemplates", otherStId, false);
    assertEquals(stId.compareTo(otherStId), serviceTemplate.compareTo(otherServiceTemplate));
}