protected void setUp() throws Exception { super.setUp(); servletContext = new MockServletContext(); servletContext.addInitParameter( "contextConfigLocation", "classpath*:idp/conf/internal.xml, classpath*:idp/conf/service.xml,classpath*:idp/conf/spring-beans-*.xml"); contextLoaderListener = new ContextLoaderListener(); contextLoaderListener.initWebApplicationContext(servletContext); }