Genetic testing can reveal mutations in cancer cells that might be driving the disease. For example, testing for mutations in the BRCA1 and BRCA2 genes can inform treatment decisions for breast and ovarian cancers. Knowing these mutations helps oncologists choose drugs that specifically target these alterations.