@Test
public static void testComparison() throws Exception {

    Model model = Model.getInstanceByName("testmodel");
    PathQuery pq = new PathQuery(model);
    TemplateComparator comparator = new TemplateComparator();
    TemplateQuery template = new TemplateQuery(TEMPLATE_NAME, TEMPLATE_TITLE, COMMENT, pq);
    TemplateQuery anotherTemplate = new TemplateQuery(ATEMPLATE_NAME, ATEMPLATE_TITLE, ACOMMENT, pq);
    int comparison = comparator.compare(template, anotherTemplate);
    assertTrue(comparison >1);
}