The test involves taking a swab from the uterine cavity and determining the expression level of the gene encoding the protein fucosyltransferase 4 FUT4, which is significantly higher in patients with endometriosis. This evidence concerns the gene FUT4 and endometriosis.