src/test/java/org/jsoup/integration/UrlConnectTest.java
/**
     * Verify that security disabling feature works properly.
     * <p/>
     * 1. try to hit url with invalid certificate and evaluate that exception is thrown
     *
     * @throws Exception
     */
Verify that security disabling feature works properly.

1. try to hit url with invalid certificate and evaluate that exception is thrown

@throws Exception
Verify that security disabling feature works properly . 1 . try to hit url with invalid certificate and evaluate that exception is thrown @throws Exception
@Test
    public void testUnsafeFail() throws Exception {
        String url = WEBSITE_WITH_INVALID_CERTIFICATE;
        assertThrows(IOException.class, () -> Jsoup.connect(url).execute());
    }
@ Test public void testUnsafeFail ( ) throws Exception { String url = WEBSITE_WITH_INVALID_CERTIFICATE ; assertThrows ( IOException . class , ( ) -> Jsoup . connect ( url ) . execute ( ) ) ; }
Verify that security disabling feature works properly.
Verify that security disabling feature works properly .