final String cookieValue = "cookieValue";
// create a cookie
// setting name := cookieName, value := cookieValue
Map cookies = getRequest().getCookieMap();
MockCookie mockCookie = new MockCookie();
// this cookie shall get selected
mockCookie.setName( cookieName);
mockCookie.setValue( cookieValue );
cookies.put( cookieName, mockCookie );
// this cookie shall be ignored, as its name differs
// from the parameterized cookie name
mockCookie = new MockCookie();
mockCookie.setName( "cookieSelectorTestCase" );
mockCookie.setValue( "unknownCookieValue" );
cookies.put( "cookieSelectorTestCase", mockCookie );
// check the cookie as defined by this parameter, not as
// defined in the component configuration
Parameters parameters = new Parameters();