### Question:
FilteredMethodVisitor extends MethodVisitor { static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; } FilteredMethodVisitor(final Method sourceMethod,
                                 final MethodVisitor methodVisitor,
                                 final Collector collect); @Override void visitMethodInsn(final int opcode,
                                final String owner,
                                final String name,
                                final String descriptor,
                                final boolean isInterface); @Override void visitInvokeDynamicInsn(final String name,
                                       final String descriptor,
                                       final Handle handle,
                                       final Object... bootstrapMethodArguments);  }### Answer:
@Test public void testCleanseClassName() { assertThat(cleanseClassName("WEB-INF.classes.com.foo.bar.MyClass")).isEqualTo("com.foo.bar.MyClass"); assertThat(cleanseClassName("com.foo.bar.MyClass")).isEqualTo("com.foo.bar.MyClass"); }