### Question:
ToSimpleNameTransformer extends NameTransformer { @Override public String transformName(String oldName) { if (StringUtils.isEmpty(oldName)) { return oldName; } else if (isSimpleName(oldName)) { return oldName; } else { String newName = namesMapping.get(oldName); if (newName == null) { newName = toSimpleName(oldName); if (!newName.equals(oldName)) { boolean isDuplicate = false; for(String key: namesMapping.keys()) { if (!key.equals(oldName) && newName.equals(namesMapping.get(key))) { isDuplicate = true; break; } } if (isDuplicate) { newName = newName + "_" + ++counter; } namesMapping.put(oldName, newName); } } return newName; } } ToSimpleNameTransformer();  ToSimpleNameTransformer(BuildLogger logger); @Override String transformName(String oldName); static void main(String[] args);  }### Answer:
@Test public void testTransformName() { ToSimpleNameTransformer transformer = (ToSimpleNameTransformer) getTransformer(); String firstName = transformer.transformName("abc ? x"); assertEquals("abcX", firstName); String secondName = transformer.transformName("abc?x"); assertEquals("abcX_1", secondName); String result = transformer.transformName("a \uD83D\uDC0E bc"); assertEquals("aBc", result); }