### Question:
BbToHtmlConverter implements PluginBbCodeService { @Override public String convertBbToHtml(String post) { return bbCodeService.convertBbToHtml(post); } private  BbToHtmlConverter(); static PluginBbCodeService getInstance(); @Override String stripBBCodes(String bbCode); @Override String convertBbToHtml(String post); void setBbCodeService(PluginBbCodeService bbCodeService);  }### Answer:
@Test public void testConvertBbToHtml() { String in = "[b]text[/b]"; String out = "<span style=\"font-weight:bold;\" data-original-title=\"\">text</span>"; when(bbCodeService.convertBbToHtml(in)).thenReturn(out); String result = BbToHtmlConverter.getInstance().convertBbToHtml(in); assertEquals(result, out); }