LogoutConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { config = builder.getSharedObject(SAMLSSOProperties.class).getLogout(); endpoints = builder.getSharedObject(ServiceProviderEndpoints.class); }  @Override void init(ServiceProviderBuilder builder); @SuppressWarnings("Duplicates") @Override void configure(ServiceProviderBuilder builder); LogoutConfigurer defaultTargetURL(String url); LogoutConfigurer logoutURL(String url); LogoutConfigurer singleLogoutURL(String url); LogoutConfigurer clearAuthentication(Boolean value); LogoutConfigurer invalidateSession(Boolean value); LogoutConfigurer successHandler(LogoutSuccessHandler handler); LogoutConfigurer localHandler(LogoutHandler handler); LogoutConfigurer globalHandler(LogoutHandler handler);  }
@Test public void init() throws Exception { LogoutConfigurer configurer = new LogoutConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(ServiceProviderEndpoints.class)); verify(builder).getSharedObject(eq(SAMLSSOProperties.class)); verify(properties).getLogout(); }