WebSSOProfileHoKConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { hokProfileBean = builder.getSharedObject(WebSSOProfileHoKImpl.class); } WebSSOProfileHoKConfigurer();  WebSSOProfileHoKConfigurer(WebSSOProfileHoKImpl hokProfile); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { WebSSOProfileHoKConfigurer configurer = new WebSSOProfileHoKConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfileHoKImpl.class)); }