root.put("entityId", manyToOneProperty);
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(headers.size(), equalTo(1));
assertThat(headers.text(), equalTo("Customer"));
Elements resultRows = html.select("table > tbody > tr");
assertThat(resultRows.attr("ng-repeat"), containsString("result in searchResults"));
Elements resultCells = resultRows.select(" > td");
assertThat(resultCells.size(), equalTo(1));
assertThat(resultCells.select("a").attr("href"), equalTo("#/"+"SampleEntities"+ "/edit/{{result.customer}}"));