An api for unit testing the cotrollers in Spring app.