Stubbing and Mocking in Java with the Spock Testing FrameworkMilica Maksimović·Jun 14, 2017Create true Java unit tests by mocking all external dependencies in your unit tests with the Spock testing framework.