@Test
public void testSetSecurityContextFactory() {

    SecurityContextFactory factory = new SecurityContextFactory() {
        @Override
        public SecurityContext createSecurityContext(SubjectConnectionReference ref) {
            return null;
        }
    };
    filter.setSecurityContextFactory(factory);
    assertSame(factory, filter.getSecurityContextFactory());
}