Here is an example:
This image was shot in early morning. The light was fairly even, as opposed to harsh daylight. The tree behind the birds is in shadow, this would make the meter try to even things out and expose just a little under for the shadows, and a good bit overexposed on the bright birds. Later in the day this difference would be even greater. I underexposed the scene by 1 stop from experience with white birds. This is roughly what the scene would have looked like in the viewfinder, or on the backscreen of the camera.
Notice the background has very little detail, and the lighter whites in the birds are on the edge of being too white with just a tad of detail. That means I should have enough leeway to bring out detail in the whites. If in doubt, give it a little more underexposure to keep from blowing out highlights.
Here is the same image taken into Lightroom and just hitting the "auto" button, to quickly bring it close, prior to fine tuning. This feature will normally get you near a good exposure for the highlights and the shadows, although personal preference can differ from what the program decides.
As you can see, it brought out a lot of detail in the shadows, which were very dark straight from the camera. The highlights still are too bright and lacking in detail.
Here is the image after I cropped it down and brought levels to my personal preferences. While I could have easily lightened the background shadows to a more "normal" level, I felt the dark background added drama to the scene. I also felt the third bird in the original was a distraction, and cropped out most of it, and used the removal tool to get rid of the rest of the "bird butt" intruding into the image. I ended up entering this in a local contest that did not allow the use of removal tools, so I just brought the exposure of the "bird butt" selectively down rendering it effectively unnoticeable. In hindsight, I probably should have underexposed this by 1.5 to 2 stops as opposed the 1 stop I used.
Bottom line is that by underexposing this by one stop, I retained enough detail in the highlights to work with, and still have plenty to work with in the shadow. Also note, that even if I had underexposed it a good bit more, I could leave the shadows dark, and it would still be an acceptable image. Dark shadows generally look OK, whereas blown out highlights look unnatural. On a side note, later in the day, when the light differences are greater, I would probably have underexposed it more on the order of 2 to 3 stops under. Modern digital images are typically very forgiving.