private String[] shuffle(String[] in) {
        List<String> list = new ArrayList<String>(Arrays.asList(in));
        Collections.shuffle(list);
        return list.toArray(new String[0]);
    }
Test when the edge case when the both supported and enabled protocols are null.
aws-java-sdk-core/src/test/java/com/amazonaws/http/conn/ssl/SdkTLSSocketFactoryTest.java