### Question:
SAMLProcessingFilter extends AbstractAuthenticationProcessingFilter { @Autowired public void setSAMLProcessor(SAMLProcessor processor) { Assert.notNull(processor, "SAML Processor can't be null"); this.processor = processor; } SAMLProcessingFilter(); Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response); @Deprecated void setDefaultTargetUrl(String url); @Autowired void setSAMLProcessor(SAMLProcessor processor); @Autowired void setContextProvider(SAMLContextProvider contextProvider); @Override void afterPropertiesSet();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testMissingProcessor() { expect(request.getContextPath()).andReturn("/saml"); processingFiler.setSAMLProcessor(null); }