assertEquals("finished", stateLog.toString());
}
public void testSupportsConventionalReaderAndWriter() throws IOException {
HTMLProcessor processor = createProcessor("<hello><b id=\"something\">world</b></hello>");
processor.addRule(new TagReplaceRule("b", "strong"));
processor.process();
assertEquals("<hello><strong id=\"something\">world</strong></hello>", body.build().getStringContent());
}