@Test(expected = Exception.class)
public void testErrorInTemplate() throws Exception {

  String templateName = "templateSyntaxError";
  String templateContent = null;
  service.applyTemplate(templateName, templateContent, workflowInstance);
}