The junit viewer module provides JUnit4 integration, allowing unit tests to be written exercising business rules by catching the exceptions thrown by proxied domain objects.
See this module's Javadoc and the user guide for more information.