### Question:
BbCodeFilterBridge implements StringBridge { @Override public String objectToString(Object object) { if (object instanceof String) { String value = (String) object; return value.replaceAll(BB_CODE_REGEXP_TEMPLATE, " "); } return ObjectUtils.toString(object); }  @Override String objectToString(Object object);  }### Answer:
@Test(dataProvider = "parametersRemoveBbCodes") public void testRemoveBbCodes(String value, String expected ) { String result = bridge.objectToString(value); Assert.assertEquals(result, expected); }
@Test(dataProvider = "parameterRemoveBbCodesInNotStringValue") public void testRemoveBbCodesInNotStringValue(Object value, String expected) { String result = bridge.objectToString(value); Assert.assertEquals(result, expected); }