This presentation gives an introduction to the testing framework spock. The main content are in the example code in here:
https://github.com/mariodavid/spock-introduction