@@ -0,0 +1,1236 @@
+package no.priv.bang.ukelonn.impl;%0A%0Aimport static no.priv.bang.ukelonn.testutils.TestUtils.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport org.apache.shiro.authc.AuthenticationInfo;%0Aimport org.apache.shiro.authc.AuthenticationToken;%0Aimport org.apache.shiro.authc.UsernamePasswordToken;%0Aimport org.apache.shiro.web.mgt.WebSecurityManager;%0Aimport org.junit.AfterClass;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Apublic class UkelonnShiroFilterTest %7B%0A%0A    @BeforeClass%0A    public static void setupClass() %7B%0A        setupFakeOsgiServices();%0A    %7D%0A%0A    @AfterClass%0A    public static void teardownForAllTests() throws Exception %7B%0A        releaseFakeOsgiServices();%0A    %7D%0A%0A    @Test%0A    public void testAuthenticate() %7B%0A        UkelonnShiroFilter shirofilter = new UkelonnShiroFilter();%0A        shirofilter.setUkelonnDatabase(getUkelonnServlet().getUkelonnServletProvider().getDatabase());%0A        shirofilter.activate();%0A        WebSecurityManager securitymanager = shirofilter.getSecurityManager();%0A        AuthenticationToken token = new UsernamePasswordToken(%22jad%22, %221ad%22.toCharArray());%0A        AuthenticationInfo info = securitymanager.authenticate(token);%0A        assertEquals(1, info.getPrincipals().asList().size());%0A    %7D%0A%0A%7D%0A

Add test for UkelonnShiroFilter.