### Question:
ToQuotedNameTransformer extends NameTransformer { @Override public String transformName(String name) { if (StringUtils.isEmpty(name)) { return name; } else if (isSimpleName(name)) { return name; } else { return "'" + name + "'"; } } ToQuotedNameTransformer();  ToQuotedNameTransformer(BuildLogger logger); @Override String transformName(String name);  }### Answer:
@Test public void testTransformName() { ToQuotedNameTransformer transformer = (ToQuotedNameTransformer) getTransformer(); String firstName = transformer.transformName("abc ? x"); assertEquals("'abc ? x'", firstName); String secondName = transformer.transformName("abc?x"); assertEquals("'abc?x'", secondName); String result = transformer.transformName("a \uD83D\uDC0E bc"); assertEquals("'a \uD83D\uDC0E bc'", result); }