FakeMethodVisitor fmv = new FakeMethodVisitor();
// First variant checks passing string rather than just one char
Utils.insertUnboxInsnsIfNecessary(fmv, "F", true);
assertEquals("visitTypeInsn(CHECKCAST,java/lang/Float) visitMethodInsn(INVOKEVIRTUAL,java/lang/Float,floatValue,()F)",
fmv.getEvents());
fmv.clearEvents();
Utils.insertUnboxInsns(fmv, 'F', true);
assertEquals("visitTypeInsn(CHECKCAST,java/lang/Float) visitMethodInsn(INVOKEVIRTUAL,java/lang/Float,floatValue,()F)",
fmv.getEvents());
fmv.clearEvents();
Utils.insertUnboxInsns(fmv, 'Z', true);