@Test
public void returnsNullWhenCookieNotFoundInRequestAndDefaultValueIsNotSet() throws Exception {

    when(cookieParam.value()).thenReturn("no cookie");
    when(parameter.getParameterClass()).thenReturn((Class)Cookie.class);
    Object resolvedCookie = cookieParameterResolver.resolve(parameter, applicationContext);
    assertNull(resolvedCookie);
}