Check out this blog post describing the various ways we're testing a Spring application using Spock in this repo.
Basically, this is a (very contrived) Spring application that I've written 6 different sets of tests for. Each set of tests uses a different strategy, ranging from very complex, thorough tests that validate a lot of Spring behaviors down to very simple tests that focus just on the custom logic.
This code is provided under the terms of the MIT license: basically you're free to do whatever you want with it, but no guarantees are made to its validity, stability, or safety. All works referenced by or utilized by this project are the property of their respective copyright holders and retain licensing that may be more restrictive.