RuleTemplate { public void setContents(String contents) { this.contents = replaceOptionals(contents); } RuleTemplate(final String n, final TemplateContainer tc);  RuleTemplate(final String n, final TemplateContainer tc, boolean replaceOptionals); String getName(); List<TemplateColumn> getColumns(); String getContents(); void addColumn(String columnString); void setContents(String contents); String toString();  }
@Test public void testSetContents() { RuleTemplate rt = new RuleTemplate("rt1", getTemplateContainer()); rt.setContents("Test template"); assertEquals("Test template\n", rt.getContents()); }