WebSSOProfileConsumerConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { webSSOProfileConsumerBean = builder.getSharedObject(WebSSOProfileConsumer.class); } WebSSOProfileConsumerConfigurer();  WebSSOProfileConsumerConfigurer(WebSSOProfileConsumer webSSOProfileConsumer); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { WebSSOProfileConsumerConfigurer configurer = new WebSSOProfileConsumerConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfileConsumer.class)); }