@Override
  protected ServerSocketFactory getServerSocketFactory() throws Exception {
    if (socketFactory == null) {
      SSLContext sslContext = getSsl().createContext(this);
      SSLParametersConfiguration parameters = getSsl().getParameters();
      parameters.setContext(getContext());
      socketFactory = new ConfigurableSSLServerSocketFactory(
        parameters, sslContext.getServerSocketFactory());
    }
    return socketFactory;
  }
@Test
  public void testGetServerSocketFactory() throws Exception {
    ServerSocketFactory socketFactory = receiver.getServerSocketFactory();
    assertNotNull(socketFactory);
    assertTrue(ssl.isContextCreated());
    assertTrue(parameters.isContextInjected());
  }