TestController.java with two end methods