try { filter.afterPropertiesSet(); fail("Should have thrown IllegalArgumentException"); } catch (IllegalArgumentException expected) { assertTrue(true); }
assertNull(filter.getSecureContext());
    public void testSecureContextSettersGetters() throws Exception {        MockAbstractIntegrationFilterImpl filter = new MockAbstractIntegrationFilterImpl(null);        // check the default        assertEquals(SecureContextImpl.class, filter.getSecureContext());        // check null causes exception        filter.setSecureContext(null);        try {            filter.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertTrue(true);        }    }