Endometriosis

Hi, I was wondering if my s/o and I need to be trying for a baby to find out if I have endometriosis? Also, how do I find out? I know it's through my ob/gyn but how do they test???? Please help