The lifespan of a single battery charge depends very much on what you are using the laptop for. For example, your time remaining may decrease sharply should you be using the laptop to watch a dvd film - the power drain from an active optical drive becoming part of the equation.
Chances are that HP calculated the battery life based on a laptop using little or no heavy-drain applications. Under power management conditions the hard-drive can even power down after a set period of time, leaving the processor, ram and graphics placing a much lighter load on said battery. The test conditions may even have had the laptop sitting in a blacked-out room with screen resolution interpolated and screen brightness set to minimum.
IMHO you should view manufacturer's performance claims with a truckload of salt.
A testdrive is the only accurate way to be sure - why do you think they are so few and far between?