I don't even know what the rated mileage is on my bike, but I do know that out on the highway, riding two-up, using cruise control, I get about 42mpg without any trouble. By myself it increases all the way to 43mpg...
Most of my riding is not on the highway using cruise control, so in the city with stop and go traffic it's down to the low-mid 30's. Group riding, even over a long distance, also only gets high 30's, since I can't use the cruise in the middle of a pack of bikes.
Terrain, acceleration, stop and go, how fast you go, how slow you go, tire pressure, tuning, wind, windshield/fairing or not, and a bunch of other stuff all make a difference. I rode with a guy that had a V-Star 1100 with windshield, he wasn't getting even 30mpg. Slowed the whole pack down because he didn't have crap for range compared to the rest of us.