@BeforeClass
    public static void init() throws Exception {

        // jks format
        byte[] sampleTruststore1 = Base64.decode(SecureGetTest.TEST_TS1);
        byte[] sampleKeystore1 = Base64.decode(SecureGetTest.TEST_KS1);

        TEST_FILE_KS = File.createTempFile("SecureAcceptAllGetTest", ".keystore");
        TEST_FILE_TS = File.createTempFile("SecureAcceptAllGetTest", ".truststore");

        FileOutputStream keystoreFileOut = new FileOutputStream(TEST_FILE_KS);
        try {
            keystoreFileOut.write(sampleKeystore1);
        } finally {
            keystoreFileOut.close();
        }

        FileOutputStream truststoreFileOut = new FileOutputStream(TEST_FILE_TS);
        try {
            truststoreFileOut.write(sampleTruststore1);
        } finally {
            truststoreFileOut.close();
        }

        try {
            TEST_SERVER = new SimpleSSLTestServer(TEST_FILE_TS, SecureGetTest.PASSWORD, TEST_FILE_KS, SecureGetTest.PASSWORD, false);
        } catch (Exception e) {
            e.printStackTrace();
            fail(e.getMessage());
        }

        // setup server 1, will use first keystore/truststore with client auth
        TEST_SERVICE_URI = "https://127.0.0.1:" + TEST_SERVER.getPort() + "/";


    }
Test that the AcceptAllSocketFactory works against a dumbed down TLS server, except when it shouldn't...

@author jzarfoss
ribbon-httpclient/src/test/java/com/netflix/niws/client/http/SecureAcceptAllGetTest.java