If a male is at high risk of osteoporosis, a doctor may recommend a bone density test. A doctor may also order the test if a person has a possible fracture.