The most important things a sexually active person can do to prevent the transmission of HIV is to practice safe sex and undergo routine HIV testing. What it’s like to get an HIV test will depend on the type of test you take and where you take it. One common facet of testing, though, is the availability of counseling regarding both the emotional and physical aspects of potentially being HIV-positive. Clinics that perform HIV testing work hard to protect the privacy of the individuals they test. The CDC can help you find a testing site.
An at-home test is also now available. Though there are many that tout themselves to be at-home testing kits, only one is approved by the FDA to be reliable. Read more about the types of tests and what it's like to get an HIV test.