Actually, if you actually have the alledged defective pistol it's not that difficult. You start by carefully examining every part, noting it's condition, whether or not it meets it's dimensional tolerance, whether the parts are lubricated and/or contaminated, etc. You analyze the operation of the pistol and determine which parts need to operate incorrectly in order to have an uncommanded discharge. you also look at the way the pistol as being carried so you know what kind of forces the past inside the pistol might see. You might apply force to parts in every direction to see if that can induce a failure. As an example, you would apply force to both the sear and the striker foot to see if there is any combination of force that cn separate them.
You also examine the holster to see if there is anyway way that the trigger can be actuated inside the holster.
If you can find a way to make a pistol fire uncommanded outside of a holster, you can probably figure a way to apply forces to the outside holster to cause it to fire.
This type of failure analysis gets done frequently in the manufacturing industry. I worked in product development and failure analysis was an important part of my job when a new design failed during testing.