This project contains a number of Spock specifications. "Spock is a testing and specification framework for Java and Groovy applications" http://code.google.com/p/spock/
A great place to start is http://code.google.com/p/spock/wiki/SpockBasics.
Install one or both of:
You'll probably want to review these tests in the following order as they get more complex as we go: