WebSSOProfileConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { webSSOProfileBean = builder.getSharedObject(WebSSOProfile.class); } WebSSOProfileConfigurer();  WebSSOProfileConfigurer(WebSSOProfile webSSOProfile); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { WebSSOProfileConfigurer configurer = new WebSSOProfileConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(WebSSOProfile.class)); }