import junit.framework.TestCase;
public class YanLoaderTestCase extends TestCase {
public void testContextLoaderServletWithDefaultContext() throws Exception {
MockServletContext sc = new MyServletContext(".");
sc.setInitParameter(YanLoader.CONFIG_FILE_PARAM,
"tests/jfun/yan/web/yan.xml");
HttpServlet servlet = new YanLoaderServlet();
MockServletConfig config = new MockServletConfig();
config.setServletContext(sc);
servlet.init(config);