AutoEnrollmentController { @InitBinder public void initBinder(WebDataBinder binder) { binder.addValidators(validator); }  @RequestMapping(method = RequestMethod.GET, value = "/{organizationId}") ResponseEntity<OrgEnrollmentConfig> getEnrolledOrganization(
            @PathVariable String organizationId); @RequestMapping(method = RequestMethod.DELETE, value = "/{organizationId}") ResponseEntity<OrgEnrollmentConfig> deleteOrganization(
            @PathVariable String organizationId); @RequestMapping(method = RequestMethod.PUT, value = "{organizationId}") ResponseEntity<OrgEnrollmentConfig> enrolOrganization(
            @PathVariable String organizationId,
            @Valid @RequestBody OrgEnrollmentConfigRequest orgEnrollerConfigRequest,
            BindingResult result); @InitBinder void initBinder(WebDataBinder binder); @ExceptionHandler({ CloudFoundryException.class }) ResponseEntity<Object> handleCloudFoundryException(CloudFoundryException cfe,
            HttpServletResponse response); @ExceptionHandler({ BindException.class }) ResponseEntity<List<ObjectError>> handleBindException(BindException be,
            HttpServletResponse response);  }
@Test public void test_initBinder() { WebDataBinder binder = new WebDataBinder(null); autoEnrollmentController.initBinder(binder); assertTrue(binder.getValidators().size() == 1 && binder.getValidator().equals(validator)); }