For animals that naturally do not travel far, they would not even know they were 'captive' in a good zoo. If animals display 'normal' behaviours, eat well, and (especially) breed (including raising their own young), then it is safe to say they are 'happy' (though content is probably a better word).