src/test/java/org/jsoup/integration/SessionTest.java
// validate that only cookies set by cookie servlet get to the cookie servlet path
validate that only cookies set by cookie servlet get to the cookie servlet path
validate that only cookies set by cookie servlet get to the cookie servlet path
private void assertCookieServlet(Document doc) {
        assertEquals(2, doc.select("table tr").size());  
        Elements doc3Els = keyEls("One", doc);
        assertEquals(2, doc3Els.size());
        assertEquals("CookieServlet", doc3Els.get(0).text()); 
        assertEquals("Root", doc3Els.get(1).text()); 
    }
private void assertCookieServlet ( Document doc ) { assertEquals ( 2 , doc . select ( "table tr" ) . size ( ) ) ; Elements doc3Els = keyEls ( "One" , doc ) ; assertEquals ( 2 , doc3Els . size ( ) ) ; assertEquals ( "CookieServlet" , doc3Els . get ( 0 ) . text ( ) ) ; assertEquals ( "Root" , doc3Els . get ( 1 ) . text ( ) ) ; }
validate that only cookies set by cookie servlet get to the cookie servlet path
validate that only cookies set by cookie servlet get to the cookie servlet path
// two of three sent to servlet (/ and /CookieServlet) // ordered by most specific path // ordered by most specific path