	@Test
	public void testInit() throws Exception {

		MockServletConfig config = new MockServletConfig();
		
		servlet.init(config);		
		Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes()==null);
		
		config.getInitParmMap().put(MonetaServlet.CONFIG_IGNORED_CONTEXT_PATH_NODES, "");
		servlet.init(config);		
		Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes()==null);
		
		config.getInitParmMap().put(MonetaServlet.CONFIG_IGNORED_CONTEXT_PATH_NODES, "fart,,,");
		servlet.init(config);		
		Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes().length==1);
		
		config.getInitParmMap().put(MonetaServlet.CONFIG_IGNORED_CONTEXT_PATH_NODES, "first , second, third ");
		servlet.init(config);		
		Assert.assertTrue(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes().length==3);
		Assert.assertTrue("third".equals(MonetaEnvironment.getConfiguration().getIgnoredContextPathNodes()[2]));
	}