### Question:
PersonNameCleaner implements Cleaner { public String clean(String value) { value = sub.clean(value); if (value == null || value.equals("")) return value; String[] tokens = StringUtils.split(value); for (int ix = 0; ix < tokens.length; ix++) { String mapsto = mapping.get(tokens[ix]); if (mapsto != null) tokens[ix] = mapsto; } return StringUtils.join(tokens); } PersonNameCleaner(); String clean(String value);  }### Answer:
@Test public void testMapping() { assertEquals("joseph stalin", cleaner.clean("Joe Stalin")); }
@Test public void testMappingEmpty() { assertEquals("", cleaner.clean("")); }