The ACTH stimulation test is a diagnostic procedure used to assess the functioning of the adrenal glands. Specifically, it measures how well the adrenal glands respond to the hormone ACTH, which stimulates the production of cortisol. This test is used to diagnose various conditions, including Addison's disease, Cushing's syndrome, and other disorders related to adrenal insufficiency.