Added unit test for Spring Controller.