@Test
void setCipherSuitesThatMayRequireJCEUnlimitedStrengthCrypto() throws NoSuchAlgorithmException {

  String aes256suite = "TLS_RSA_WITH_AES_256_CBC_SHA256";
  SSLContext context = SSLContext.getDefault();
  List<String> supportedCiphers = Arrays.asList(context.getSupportedSSLParameters().getCipherSuites());
  // This test assumes that the default supported ciphers does *not* include any AES 256 cipher suites (aka: "Unlimited Strength Cryptography" is missing).
  assumeFalse(supportedCiphers.contains(aes256suite));
  try {
    builder.setCipherSuites(new String[]{aes256suite});
    fail("setCipherSuites([" + aes256suite + "]) should fail when it is not in the supported ciphers list.");
  } catch (IllegalArgumentException e) {
    assertThat(e.getMessage(), CoreMatchers.containsString("Java Cryptography Extension"));
  }
}