TeStereo report

@Test public void testCreateSslEngineFromJksStoreWithExplicitDisabledCiphers() throws Exception { TransportSslOptions options=createJksSslOptions(); SSLEngine directEngine=createSSLEngineDirectly(options); String[] ciphers=directEngine.getEnabledCipherSuites(); assertTrue("There were no initial ciphers to choose from!",ciphers.length > 0); String[] disabledCipher=new String[]{ciphers[ciphers.length - 1]}; String[] trimmedCiphers=Arrays.copyOf(ciphers,ciphers.length - 1); options.setDisabledCipherSuites(disabledCipher); SSLContext context=TransportSupport.createSslContext(options); SSLEngine engine=TransportSupport.createSslEngine(context,options); assertNotNull(engine); assertArrayEquals("Enabled ciphers not as expected",trimmedCiphers,engine.getEnabledCipherSuites()); }