Code samples from the book "Java testing with Spock"