### Question:
DotNames { public static String simpleName(ClassInfo clazz) { switch (clazz.nestingType()) { case TOP_LEVEL: return simpleName(clazz.name()); case INNER: return clazz.simpleName(); default: throw new IllegalStateException("Unsupported nesting type: " + clazz); } } private  DotNames(); static String simpleName(ClassInfo clazz); static String simpleName(DotName dotName); static String simpleName(String name); static String packageName(DotName dotName); static final DotName OBJECT; static final DotName OBSERVES; static final DotName OBSERVES_ASYNC; static final DotName PRODUCES; static final DotName DISPOSES; static final DotName QUALIFIER; static final DotName REPEATABLE; static final DotName NONBINDING; static final DotName INJECT; static final DotName POST_CONSTRUCT; static final DotName PRE_DESTROY; static final DotName INSTANCE; static final DotName INJECTABLE_INSTANCE; static final DotName PROVIDER; static final DotName INJECTION_POINT; static final DotName INTERCEPTOR; static final DotName INTERCEPTOR_BINDING; static final DotName INTERCEPTED; static final DotName AROUND_INVOKE; static final DotName AROUND_CONSTRUCT; static final DotName PRIORITY; static final DotName DEFAULT; static final DotName ANY; static final DotName BEAN; static final DotName BEAN_MANAGER; static final DotName EVENT; static final DotName EVENT_METADATA; static final DotName ALTERNATIVE; static final DotName ALTERNATIVE_PRIORITY; static final DotName DEFAULT_BEAN; static final DotName SINGLETON; static final DotName APPLICATION_SCOPED; static final DotName STEREOTYPE; static final DotName TYPED; static final DotName VETOED; static final DotName CLASS; static final DotName ENUM; static final DotName EXTENSION; static final DotName OPTIONAL; static final DotName OPTIONAL_INT; static final DotName OPTIONAL_LONG; static final DotName OPTIONAL_DOUBLE; static final DotName NAMED; static final DotName ACTIVATE_REQUEST_CONTEXT; static final DotName TRANSACTION_PHASE; static final DotName INITIALIZED; static final DotName TRANSIENT_REFERENCE; static final DotName BOOLEAN; static final DotName BYTE; static final DotName CHARACTER; static final DotName DOUBLE; static final DotName FLOAT; static final DotName INTEGER; static final DotName LONG; static final DotName SHORT; static final DotName STRING; static final DotName DEPRECATED; }### Answer:
@Test public void testSimpleName() throws IOException { Index index = index(Nested.class, NestedNested.class, DotNamesTest.class); Assertions.assertEquals("Nested", DotNames.simpleName(index.getClassByName(DotName.createSimple(Nested.class.getName())))); assertEquals("DotNamesTest$Nested", DotNames.simpleName(index.getClassByName(DotName.createSimple(Nested.class.getName())).name())); assertEquals("NestedNested", DotNames.simpleName(index.getClassByName(DotName.createSimple(NestedNested.class.getName())))); assertEquals("DotNamesTest$Nested$NestedNested", DotNames.simpleName(index.getClassByName(DotName.createSimple(NestedNested.class.getName())).name())); assertEquals("DotNamesTest", DotNames.simpleName(index.getClassByName(DotName.createSimple(DotNamesTest.class.getName())))); assertEquals("DotNamesTest$Nested", DotNames.simpleName("io.quarkus.arc.processor.DotNamesTest$Nested")); }