TLSConfigurer extends SecurityConfigurerAdapter<Void, ServiceProviderBuilder> { @Override public void init(ServiceProviderBuilder builder) throws Exception { config = builder.getSharedObject(SAMLSSOProperties.class).getTls(); }  @Override void init(ServiceProviderBuilder builder); @Override void configure(ServiceProviderBuilder builder); TLSConfigurer protocolName(String protocolName); TLSConfigurer protocolPort(int protocolPort); TLSConfigurer sslHostnameVerification(String sslHostnameVerification); TLSConfigurer trustedKeys(String... trustedKeys);  }
@Test public void init() throws Exception { TLSConfigurer configurer = new TLSConfigurer(); configurer.init(builder); verify(builder).getSharedObject(eq(SAMLSSOProperties.class)); verify(properties).getTls(); }