AsciiDoctorFormatter { public String format(String origin, AsciiDoctorFormatterConfig config) { if (origin == null) { return ""; } List<AsciidocFormatBlock> blocks = blockScanner.scan(origin); StringBuilder sb = new StringBuilder(); for (AsciidocFormatBlock block : blocks) { handleBlock(block,config); sb.append(block.source); } return sb.toString(); }  String format(String origin, AsciiDoctorFormatterConfig config);  }
@Test public void test1_lorem_ipsum() throws Exception { config.maxColumn=80; assertEquals(loadFeatureFile("feature-255-01-expected-when-max-column-80.adoc"),formatterToTest.format(loadFeatureFile("feature-255-01-origin.adoc"),config)); }
@Test public void test2_block_inside() throws Exception { config.maxColumn=80; assertEquals(loadFeatureFile("feature-255-02-expected-when-max-column-80.adoc"),formatterToTest.format(loadFeatureFile("feature-255-02-origin.adoc"),config)); }