Map<String, Object> root = new HashMap<String, Object>();
root.put("entityName", "SampleEntity");
root.put("properties", properties);
Resource<URL> templateResource = resourceFactory.create(getClass().getResource(Deployments.BASE_PACKAGE_PATH + Deployments.SEARCH_RESULTS));
Template processor = processorFactory.create(templateResource, FreemarkerTemplate.class);
String output = processor.process(root);
Document html = Jsoup.parseBodyFragment(output);
assertThat(output.trim(), not(equalTo("")));
Elements headers = html.select("table > thead > tr > th");
assertThat(0, equalTo(headers.size()));