### Question:
MySQLDataSource extends BaseDataSource { @Override public String getUser() { if(user.contains(sensitiveParam)){ logger.warn("sensitive param : {} in username field is filtered", sensitiveParam); user = user.replace(sensitiveParam, ""); } logger.debug("username : {}", user); return user; }  @Override String driverClassSelector(); @Override DbType dbTypeSelector(); @Override String getUser(); @Override String getPassword();  }### Answer:
@Test public void testGetUser(){ MySQLDataSource dataSource = new MySQLDataSource(); String safeUsername= "test123"; dataSource.setUser(safeUsername); Assert.assertEquals("test123", dataSource.getUser()); String sensitiveUsername= "test123?autoDeserialize=true"; dataSource.setUser(sensitiveUsername); Assert.assertEquals("test123?", dataSource.getUser()); }