WebSSOProfileECPConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { ecpProfileBean = builder.getSharedObject(WebSSOProfileECPImpl.class); } WebSSOProfileECPConfigurer();  WebSSOProfileECPConfigurer(WebSSOProfileECPImpl ecpProfile); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { WebSSOProfileECPConfigurer configurer = new WebSSOProfileECPConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfileECPImpl.class)); }