The test may be requested when a person has risk factors for HBV infection, such as being born to an HBV-infected mother, having unprotected sex with someone who is infected with HBV, or sharing needles with someone who is infected with HBV. It may also be ordered to monitor the response to treatment for HBV infection.