### Question:
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override protected MultiValueMap<String, HttpCookie> initCookies() { MultiValueMap<String, HttpCookie> cookies = new LinkedMultiValueMap<>(); context.cookieMap() .values() .stream() .map(CookieConverter::toHttpCookie) .forEach(cookie -> cookies.add(cookie.getName(), cookie)); return cookies; } VertxServerHttpRequest(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeRequest(); @Override String getMethodValue(); @Override Flux<DataBuffer> getBody(); @Override InetSocketAddress getRemoteAddress();  }### Answer:
@Test public void shouldInitCookies() { Map<String, Cookie> originalCookies = new HashMap<>(2); originalCookies.put("cookie1", Cookie.cookie("cookie1", "value1")); originalCookies.put("cookie2", Cookie.cookie("cookie2", "value2")); given(mockRoutingContext.cookieMap()).willReturn(originalCookies); assertThat(vertxServerHttpRequest.initCookies()).containsOnly( new AbstractMap.SimpleEntry<>("cookie1", Collections.singletonList(new HttpCookie("cookie1", "value1"))), new AbstractMap.SimpleEntry<>("cookie2", Collections.singletonList(new HttpCookie("cookie2", "value2"))) ); }