How to test if batteries are good or dead?

If you want to know if batteries such as AAA’S or AA’s are good, drop them from a height of 6 inches on a flat surface. If they bounce and then fall over, they’re good. If they bounce more than once, they’re empty.