### Question:
BbToHtmlConverter implements PluginBbCodeService { @Override public String stripBBCodes(String bbCode) { return bbCodeService.stripBBCodes(bbCode); } private  BbToHtmlConverter(); static PluginBbCodeService getInstance(); @Override String stripBBCodes(String bbCode); @Override String convertBbToHtml(String post); void setBbCodeService(PluginBbCodeService bbCodeService);  }### Answer:
@Test public void testStripBbCodes() { String in = "[b]text[/b]"; String out = "text"; when(bbCodeService.stripBBCodes(in)).thenReturn(out); String result = BbToHtmlConverter.getInstance().stripBBCodes(in); assertEquals(result, out); }