MBeanStringSanitizer { String escapeValue(Object value) { return HtmlUtils.htmlEscape(value != null ? value.toString() : "<null>"); }    }
@Test public void testEscapeValueEscapesValues() { String testString = "this<contains>evil&characters"; String escapedString = sanitizer.escapeValue(testString); assertEquals("this&lt;contains&gt;evil&amp;characters", escapedString); }
@Test public void testEscapeValueEscapesNulls() { assertEquals("&lt;null&gt;", sanitizer.escapeValue(null)); }