Stop surefire from stealing focus by setting java.awt.headless=true.
Ensure no new instance of PregeneratedKeyPairFactory can be created using the default constructor and reflection.