What is the relationship between battery capacity and battery energy?

What is the relationship between battery capacity and battery energy?