ConfigurationController { @RequestMapping(value = {"/add"}, method = RequestMethod.GET) public String getAdd() { log.debug("accessing new directory page"); return "directory"; } @Autowired  ConfigurationController(
        SyncConfigurationManager syncConfigurationManager,
        SyncProcessManager syncProcessManager,
        SyncOptimizeManager syncOptimizeManager); @ModelAttribute("directoryConfigs") DirectoryConfigs directoryConfigs(); @ModelAttribute("duracloudConfiguration") DuracloudConfiguration duracloudConfiguration(); @ModelAttribute("duracloudCredentialsForm") DuracloudCredentialsForm duracloudCredentials(); @ModelAttribute("maxFileSizeForm") MaxFileSizeForm maxFileSizeForm(); @ModelAttribute("modeForm") ModeForm modeForm(); @ModelAttribute("syncProcessState") SyncProcessState syncProcessState(); @ModelAttribute("advancedForm") AdvancedForm advancedForm(); @RequestMapping(value = {""}, method = RequestMethod.GET) String get(Model model); @RequestMapping(value = {"/remove"}, method = RequestMethod.POST) View removeDirectory(@Valid DirectoryConfigForm directoryConfigForm,
                                RedirectAttributes redirectAttributes); @RequestMapping(value = {"/advanced"}, method = RequestMethod.POST) View updateOptions(AdvancedForm form, RedirectAttributes redirectAttributes); @RequestMapping(value = {"/mode"}, method = RequestMethod.POST) View updateMode(ModeForm form, RedirectAttributes redirectAttributes); @RequestMapping(value = {"/max-file-size"}, method = RequestMethod.POST) View updateMaxFileSize(MaxFileSizeForm form, RedirectAttributes redirectAttributes); @ModelAttribute("threadCountForm") ThreadCountForm threadCountForm(); @ModelAttribute("syncOptimizeManager") SyncOptimizeManager syncOptimizeManager(); @RequestMapping(value = {"/thread-count"}, method = RequestMethod.POST) View updateThreadCount(ThreadCountForm form, RedirectAttributes redirectAttributes); @ModelAttribute("directoryConfigForm") DirectoryConfigForm directoryConfigForm(); @RequestMapping(value = {"/add"}, method = RequestMethod.GET) String getAdd(); @RequestMapping(value = {"/add"}, method = RequestMethod.POST) View add(@Valid DirectoryConfigForm directoryConfigForm,
                    RedirectAttributes redirectAttributes); @ModelAttribute("prefixForm") PrefixForm prefixForm(); @RequestMapping(value = {"/prefix"}, method = RequestMethod.POST) View updatePrefix(PrefixForm form, RedirectAttributes redirectAttributes); @RequestMapping(value = {"/optimize"}, method = RequestMethod.GET) String optimize(); @RequestMapping(value = {"/optimize"}, method = RequestMethod.POST) View optimize(@RequestParam(value = "autoStart", defaultValue = "false") final boolean autoStart,
                         RedirectAttributes redirectAttributes); static final String CONFIGURATION_MAPPING; }
@Test public void testGetAdd() { replay(); Assert.assertNotNull(configurationController.getAdd()); }