### Question:
BasicHTMLSanitizer extends Sanitizer { @Override public Object santize(Object fieldData) { if (fieldData == null) { return fieldData; } else { String safe = Jsoup.clean( fieldData.toString(), "", Whitelist.basic() .addTags("div") .addTags("font") .addAttributes("font", "color", "face", "size", "style") .addAttributes(":all", "style"), new Document.OutputSettings().prettyPrint(false) ); safe = StringProcessor.removeBadStyles(safe); String lineSeparator = Character.toString((char) 0x2028); safe = safe.replace(lineSeparator, "<br>"); return safe; } }  @Override Object santize(Object fieldData);  }### Answer:
@Test public void santizeTest() { BasicHTMLSanitizer sanitizer = new BasicHTMLSanitizer(); Object result = sanitizer.santize(input); System.out.println("EXPECTED: " + expectedOutput); System.out.println("RESULT : " + result); assertEquals(expectedOutput, result); }