Stubs and Spies in Spock with Examples.
Stubbing is nothing but setting up pre-defined or canned responses on the Mock invocations to test different flows/scenarios of the application under test.
Spies are based on real objects i.e. they need the interface implementation and not the abstract interface itself. Both Stubs and Spies in the Spock Framework are explained here in detail.