### Question:
UtilHtmlSanitizer { public void unsanitizeConnectionParameters( IDatabaseConnection connection ) { String safeName = StringEscapeUtils.unescapeHtml( connection.getName() ); connection.setName( safeName ); String safeDbName = StringEscapeUtils.unescapeHtml( connection.getDatabaseName() ); connection.setDatabaseName( safeDbName ); String safeDbPort = StringEscapeUtils.unescapeHtml( connection.getDatabasePort() ); connection.setDatabasePort( safeDbPort ); String safeHostname = StringEscapeUtils.unescapeHtml( connection.getHostname() ); connection.setHostname( safeHostname ); String safePassword = StringEscapeUtils.unescapeHtml( connection.getPassword() ); connection.setPassword( safePassword ); String safeUsername = StringEscapeUtils.unescapeHtml( connection.getUsername() ); connection.setUsername( safeUsername ); } private  UtilHtmlSanitizer(); static synchronized UtilHtmlSanitizer getInstance(); void sanitizeConnectionParameters( IDatabaseConnection connection ); void unsanitizeConnectionParameters( IDatabaseConnection connection ); String safeEscapeHtml( String html ); String escape( String stringToEscape );  }### Answer:
@Test public void testUnsanitizeConnectionParameters() throws Exception { DatabaseConnection connection = new DatabaseConnection(); connection.setName( "<font color=\"red\">\"AAAAAAAAAAAA\"" ); assertEquals( "<font color=\"red\">\"AAAAAAAAAAAA\"", connection.getName() ); sanitizer.sanitizeConnectionParameters( connection ); assertEquals( "&lt;font color=&quot;red&quot;&gt;&quot;AAAAAAAAAAAA&quot;", connection.getName() ); sanitizer.unsanitizeConnectionParameters( connection ); assertEquals( "<font color=\"red\">\"AAAAAAAAAAAA\"", connection.getName() ); assertNull( connection.getDatabaseName() ); }