Sample project that has an overview of ways to use Spock to test different java / groovy code.
spock examples with groovy and java