I have Groovy PSL project and I would like to add tests for code that calls outside classes. So, for example, I would like to mock this DeploymentMetrics class and
DeploymentMetrics