SingleLogoutProfileConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { sloProfileBean = builder.getSharedObject(SingleLogoutProfile.class); } SingleLogoutProfileConfigurer();  SingleLogoutProfileConfigurer(SingleLogoutProfile sloProfile); @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder);  }
@Test public void init() throws Exception { SingleLogoutProfileConfigurer configurer = new SingleLogoutProfileConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(SingleLogoutProfile.class)); }