Testing nanomaterials for mutagenicity involves a combination of in vitro and in vivo assays. Commonly used tests include the Ames test, which uses bacteria to assess the mutagenic potential of a substance, and Comet assay, which measures DNA damage in individual cells. Additionally, advanced techniques such as genomic sequencing and bioinformatics are employed to detect mutations at a molecular level.