@Override
  public ClientEndpoint newClient(ChannelType channelType, int port, String[] protocols,
      String[] ciphers) throws IOException {
    return new ClientEndpoint(
        factories.clientFactory, channelType, port, protocols, ciphers);
  }
Utility for creating test client and server instances.
benchmark-jmh/src/jmh/java/org/conscrypt/OpenJdkEndpointFactory.java