If the post is small, such as a fence post, grab hold of it and shake it. For larger posts, hit around the base with a hammer. Good wood will make a solid "crack" sound, rotten wood makes a "thud". If really really rotten, the hammer will stick in the wood.