@Test
public void testCompareToDifferentNamespace() {

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