TealessSSLContextBuilder { public void setProtocols(String[] protocols) { for (String protocol : protocols) { if (!isValidProtocol(protocol)) { throw new IllegalArgumentException("The protocol '" + protocol + "' is not supported. Supported protocols are: " + Arrays.asList(defaultContext.getSupportedSSLParameters().getCipherSuites())); } } this.protocols = protocols; }  void setTracker(SSLCertificateVerificationTracker tracker); KeyStore getTrustStore(); void setTrustStore(KeyStore trustStore); SSLContext build(); void setKeyManagerFactory(KeyManagerFactory keyManagerFactory); void setCipherSuites(String[] cipherSuites); void setProtocols(String[] protocols);  }
@Test void setProtocolsWithInvalidProtocol() { assertThrows(IllegalArgumentException.class, () -> builder.setProtocols(new String[]{"SSL100"})); }