WebSSOProfileHoKConsumerConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { hokProfileConsumerBean = builder.getSharedObject(WebSSOProfileConsumerHoKImpl.class); } WebSSOProfileHoKConsumerConfigurer();  WebSSOProfileHoKConsumerConfigurer(WebSSOProfileConsumerHoKImpl hokProfileConsumer); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { WebSSOProfileHoKConsumerConfigurer configurer = new WebSSOProfileHoKConsumerConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfileConsumerHoKImpl.class)); }