ClassReader cr = new ClassReader(is);
ClassWriter cw = new ClassWriter(0);
ClassVisitor cv = new TraceClassVisitor(cw,
new PrintWriter(new CharArrayWriter()));
cr.accept(cv, new Attribute[] { new Comment(), new CodeComment() }, 0);
assertEquals(cr, new ClassReader(cw.toByteArray()));
}
}