Question: I just threw together a quick **Spring MVC** app as a demo to replace an internal app in my department.

Now I'm supposed to demonstrate how **Test Driven Development** works in relation to Spring MVC.

Unfortunately I didn't use **TDD** to build the demo and I'm not sure where to get started with it.

I'm using **Maven** for the build - are there any **Maven-based testing frameworks** that are easy to get started with in **Spring MVC** and that have good tutorials?

Where do I start?

Answer: 
[This](http://static.springsource.org/docs/Spring-MVC-step-by-step/) tutorial details how to develop a Spring Framework MVC application step-by-step, which includes a step for [writing a test](http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html#step1.9). Use the example therein as a model.
You will need a testing framework (like JUnit) and a framework for mocking Spring controllers. [EasyMock](http://easymock.org/) is a good choice. You can find some tutorials [here](http://blog.codehangover.com/getting-friendly-with-spring-junit-and-easymock/) and [here](http://www.abcseo.com/tech/java/testing-spring-controllers-with-easymock).