RoleController extends AbstractFormController { public void setMessageSource(MessageSource messageSource) { this.messageSource = messageSource; } RoleController(); @Override void initBinder(HttpServletRequest request, ServletRequestDataBinder binder); ModelAndView defaultView(String agencyFilter); void setAgencyUserManager(AgencyUserManager agencyUserManager); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager);  }
@Test public final void testSetMessageSource() { try { testInstance.setMessageSource(new MockMessageSource()); } catch(Exception e) { String message = e.getClass().toString() + " - " + e.getMessage(); log.debug(message); fail(message); } }