title: Calling controller from junit test
body: <p>How can I call a spring annotated controller from a JUnit test, in a way so that spring comes into play with binding and all, but without making a http request (just mocking out the request object)? It has to include the whole shebang from the controller and down, with JPA and database and all. We are also using EJB, so maybe a bean can do this for me?</p>
  
  <p>The reason for this, is that I would like to have some automatic tests that tests performance of specific controller calls, but without the client and network traffic.</p>
  
  <p>Thank you</p>