SAMLContextProviderConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { samlContextProviderProperties = builder.getSharedObject(SAMLSSOProperties.class).getContextProvider(); } SAMLContextProviderConfigurer(SAMLContextProvider samlContextProvider);  SAMLContextProviderConfigurer(); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { SAMLContextProviderConfigurer configurer = new SAMLContextProviderConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(SAMLSSOProperties.class)); }