/** Test the putting of values into the SimpleScriptModule. */ public void testSelectScriptFilter() throws Exception { assertNull("Should not be found", module.selectScriptFilter(null)); assertNull("Should not be found", module.selectScriptFilter("not there")); String contentType = "contentType"; ScriptFilter filter = createScriptFilter(contentType, "org.xml.sax.helpers.XMLFilterImpl"); module.putScriptFilter(filter); final XMLFilter xmlFilter = module.selectScriptFilter(contentType); assertNotNull("Should be found", xmlFilter); assertTrue("Value should match", xmlFilter instanceof XMLFilterImpl); }