How to find out the real capacity of the battery?

The capacity that battery manufacturers write is impressive: 6000mAh, 10000mAh, 20000mAh ... In fact, the real capacity of such batteries does not exceed 3500mAh. And this is the best!!! Cheap copies rarely have a capacity of more than 1000 mAh.