OptimizationDictionaryController { @RequestMapping( value = {"/get_OptimizationModelsDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) public void getOptimizationModelsDictionaryByNameEntityData(HttpServletResponse response) { DictionaryUtils dUtils = getDictionaryUtilsInstance(); dUtils.getDataByEntity(response, optimizationModelsDictionaryDatas, modelName, OptimizationModels.class); } OptimizationDictionaryController(); @Autowired  OptimizationDictionaryController(CommonClassDao commonClassDao); static void setCommonClassDao(CommonClassDao commonClassDao); @RequestMapping( value = {"/get_OptimizationModelsData"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getOptimizationModelsDictionaryEntityData(HttpServletResponse response); @RequestMapping( value = {"/get_OptimizationModelsDataByName"}, method = {RequestMethod.GET}, produces = MediaType.APPLICATION_JSON_VALUE) void getOptimizationModelsDictionaryByNameEntityData(HttpServletResponse response); @RequestMapping(value = {"/oof_dictionary/save_model"}, method = {RequestMethod.POST}) ModelAndView saveOptimizationModelsDictionary(HttpServletRequest request, HttpServletResponse response); @RequestMapping(value = {"/oof_dictionary/remove_model"}, method = {RequestMethod.POST}) void removeOptimizationModelsDictionary(HttpServletRequest request, HttpServletResponse response);  }
@Test public void testGet() { OptimizationDictionaryController controller = new OptimizationDictionaryController(commonClassDao); MockHttpServletResponse response = new MockHttpServletResponse(); controller.getOptimizationModelsDictionaryByNameEntityData(response); assertEquals(Response.Status.OK.getStatusCode(), response.getStatus()); }