Laboratories use microbiological testing methods such as culture tests and polymerase chain reaction (PCR) to detect E. coli contamination.