### Question:
ClassRemapper extends ClassVisitor { @Override public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) { this.className = name; super.visit( version, access, remapper.mapType(name), remapper.mapSignature(signature, false), remapper.mapType(superName), interfaces == null ? null : remapper.mapTypes(interfaces)); } ClassRemapper(final ClassVisitor classVisitor, final Remapper remapper); protected  ClassRemapper(final int api, final ClassVisitor classVisitor, final Remapper remapper); @Override void visit(
      final int version,
      final int access,
      final String name,
      final String signature,
      final String superName,
      final String[] interfaces); @Override ModuleVisitor visitModule(final String name, final int flags, final String version); @Override AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible); @Override AnnotationVisitor visitTypeAnnotation(
      final int typeRef, final TypePath typePath, final String descriptor, final boolean visible); @Override void visitAttribute(final Attribute attribute); @Override RecordComponentVisitor visitRecordComponent(
      final String name, final String descriptor, final String signature); @Override FieldVisitor visitField(
      final int access,
      final String name,
      final String descriptor,
      final String signature,
      final Object value); @Override MethodVisitor visitMethod(
      final int access,
      final String name,
      final String descriptor,
      final String signature,
      final String[] exceptions); @Override void visitInnerClass(
      final String name, final String outerName, final String innerName, final int access); @Override void visitOuterClass(final String owner, final String name, final String descriptor); @Override void visitNestHost(final String nestHost); @Override void visitNestMember(final String nestMember); @Override void visitPermittedSubclass(final String permittedSubclass);  }### Answer:
@Test public void testVisit() { ClassNode classNode = new ClassNode(); ClassRemapper classRemapper = new ClassRemapper(classNode, new SimpleRemapper("pkg/C", "new/pkg/C")); classRemapper.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, "pkg/C", null, "java/lang/Object", null); assertEquals("new/pkg/C", classNode.name); }