Pumping seems to be the most common method, but will not work with all engines.
While not practical for everyone due to logistics, having your engine certified and sealed when it's built saves potential grief at the track, and saves time in impound. For some engine configs, like two strokes, it will have to be measured with the head off regardless. IIRC, if the engine displacement is close to the limit, it's supposed to be measured with the head off anyhow, pumping is not allowed. I could be wrong.