Biocompatibility testing is conducted through a series of in vitro and in vivo tests. In vitro tests involve using cell cultures to assess cytotoxicity and other cellular responses. In vivo tests are performed on animals to observe systemic effects and long-term reactions. The choice of test is guided by the material's intended use, duration of contact, and potential risk to the patient.