### Question:
TemplateManager { public void process(Writer out) { if (template == null) { throw new RuntimeException("Template can not be null"); } try { template.process(parameter, out); } catch (IOException | TemplateException e) { throw new RuntimeException("Template Exception", e); } } TemplateManager();  TemplateManager(Template template);  TemplateManager(String templateName, String templateBody);  TemplateManager(String templateName); Map<String, Object> getParameter(); void setParameter(Map<String, Object> parameter); void process(Writer out);  }### Answer:
@Test public void templateShouldThrowRobeRuntimeException2() { try { new TemplateManager().process(new StringWriter()); Assert.fail("Should throw Exception "); } catch (Exception e) { Assert.assertTrue("Throw Exception", true); } }