@Test
public void retrievesCookieFromRequest() throws Exception {

    when(parameter.getParameterClass()).thenReturn((Class)Cookie.class);
    Object resolvedCookie = cookieParameterResolver.resolve(parameter, applicationContext);
    assertSame(cookie1, resolvedCookie);
}