ModuleWriter implements ProcessorConstants, AngularConstants { public void writeModule(Writer writer) throws IOException { writer.append(TAB).append("try").append(SPACEOPTIONAL).append(OPENBRACE).append(CR); writer.append(TAB2).append(ANGULAR_MODULE).append(OPENPARENTHESIS).append(MODULENAME).append(CLOSEPARENTHESIS) .append(SEMICOLON).append(CR); writer.append(TAB).append(CLOSEBRACE).append(SPACEOPTIONAL).append("catch").append(SPACEOPTIONAL) .append(OPENPARENTHESIS).append("e").append(CLOSEPARENTHESIS).append(SPACEOPTIONAL).append(OPENBRACE) .append(CR); writer.append(TAB2).append(ANGULAR_MODULE).append(OPENPARENTHESIS).append(MODULENAME).append(COMMA) .append(SPACEOPTIONAL).append(BRACKETS).append(CLOSEPARENTHESIS).append(SEMICOLON) .append(CR); writer.append(TAB).append(CLOSEBRACE).append(CR); }  void writeModule(Writer writer); void writeAddition(Writer writer, String type, String name);  }
@Test public void testWriteModule() throws Exception { System.out.println("writeModule"); Writer writer = WriterTest.getMockWriter(); instance.writeModule(writer); List<String> allValues = WriterTest.testBraces(writer); }