Researchers have developed a test that can assess risk of depression in boys by testing for elevated levels of cortisol.