public void I_have_a_web_application_with_javaconfig_in_package(String scanPackage) throws Throwable {
MockServletContext sc = new MockServletContext("");
AnnotationConfigWebApplicationContext appContext = new AnnotationConfigWebApplicationContext();
appContext.scan(scanPackage);
appContext.setServletContext(sc);
appContext.refresh();
this.wac = appContext;
this.hm = appContext.getBean(RouterHandlerMapping.class);
this.ha = appContext.getBean(RequestMappingHandlerAdapter.class);