BranchInstruction test1 = factory.createBranchInstruction(Constants.IFEQ, null);
tests.add(test1);
implementation.append(test1);
implementation.append(factory.createLoad(new ArrayType(Type.OBJECT, 1), 4));
implementation.append(new ARRAYLENGTH());
implementation.append(new PUSH(classGen.getConstantPool(), method.getParameterTypes().length));
// Here I should test if args.length == <num>, if not equal then go to the next branch
// Create branch instructions with no offset, since it cannot be handled now, see above
BranchInstruction test2 = factory.createBranchInstruction(Constants.IF_ICMPNE, null);
tests.add(test2);