You can use laboratory testing as a quality control measure at any point in the production process.
In a lab, samples are examined by technicians using specialized tools to determine if they adhere to predetermined standards.