* Test that ensures the WebIniSecurityManagerFactory will automatically add the default
* filters to the pool of beans before the INI configuration is interpreted.
*/
@Test
public void testDefaultFiltersPresent() {
Ini ini = new Ini();
//just a normal configuration line in the MAIN section for any of the default filtes should work
//out of the box. So, create the main section and just config one of them:
Ini.Section section = ini.addSection(IniSecurityManagerFactory.MAIN_SECTION_NAME);
section.put("authc.loginUrl", "/login.jsp");
WebIniSecurityManagerFactory factory = new WebIniSecurityManagerFactory(ini);
org.apache.shiro.mgt.SecurityManager sm = factory.getInstance();
assertNotNull(sm);