### Question:
BBCodeService implements PluginBbCodeService { public String convertBbToHtml(String bbEncodedText) { for (TextProcessor preprocessor : preprocessors) { bbEncodedText = preprocessor.process(bbEncodedText); } if (isUserbbCode(bbEncodedText)){ bbEncodedText = processUserbbCode(bbEncodedText); } else { bbEncodedText = processor.process(bbEncodedText); } for (TextPostProcessor postpreprocessor : postprocessors) { bbEncodedText = postpreprocessor.postProcess(bbEncodedText); } return bbEncodedText; }  String quote(String source, JCUser author); String convertBbToHtml(String bbEncodedText); void setPreprocessors(List<TextProcessor> preprocessors); void setPostprocessors(List<TextPostProcessor> postprocessors); String stripBBCodes(String bbCode);  }### Answer:
@Test(dataProvider = "validBBCodes") public void testBBCodeConversion(String bbCode, String expectedResult) { assertEquals(service.convertBbToHtml(bbCode), expectedResult); }