rest-assured/src/main/java/io/restassured/builder/ResponseSpecBuilder.java
public ResponseSpecBuilder expectCookie(String cookieName, Matcher<String> expectedValueMatcher) {
        spec.cookie(cookieName, expectedValueMatcher);
        return this;
    }
public ResponseSpecBuilder expectCookie(String cookieName, Matcher<String> expectedValueMatcher) {
        spec.cookie(cookieName, expectedValueMatcher);
        return this;
    }
public ResponseSpecBuilder expectCookie ( String cookieName , Matcher < String > expectedValueMatcher ) { spec . cookie ( cookieName , expectedValueMatcher ) ; return this ; }
Expect that a response cookie matches the supplied cookie name and hamcrest matcher.
<p>
E.g. <tt>cookieName1=cookieValue1</tt>
</p>

@param cookieName           The name of the expected cookie
@param expectedValueMatcher The Hamcrest matcher that must conform to the value
@return The builder
Expect that a response cookie matches the supplied cookie name and hamcrest matcher . <p > E . g . <tt > cookieName1 = cookieValue1< / tt > < / p >