How to create Spock mocks outside of a specification class? How to create Spock mocks outside of a specification class? spring spring