If you have a 5D2, 50D, etc. that has Liveview, when you get the lens:
- mount lens and camera on a tripod, switch on Liveview, lens to MF and AV at the largest aperture, magnify 5x or 10x, manually focus the lens to the most focused image possible, take three shots of a colorful, contrasty object at a distance you would use the lens at, refocusing in between shots if you wish. Look at the images on your computer at 100%. If the shots are focused and sharp, there is nothing wrong with the lens.
- without moving the camera and tripod at all, lens still set in AV for the largest aperture, change the lens setting to AF, turn off Liveview and take three normal AF shots. If when viewed at 100% on your computer the shots are in focus and sharp, your lens is fine. If they are OOF, front or back, you need to try MA or send the lens in for calibration.
If you can't get a sharp, in focus image with either of the above, perhaps the lens should be replaced or repaired by Canon. If over time you are having inconsistencies with focus and sharpness and you have made sure it is not your error, you can always send the lens in to Canon for adjustment or repair.
It's all simple and logical. Automatically sending a new lens in to Canon, just in case, is a waste of everybody's time and money, and a reason why legitimate adjustments and repairs will take longer for others.