ArmeriaClientHttpResponse implements ClientHttpResponse { @Override public MultiValueMap<String, ResponseCookie> getCookies() { final MultiValueMap<String, ResponseCookie> cookies = this.cookies; if (cookies != null) { return cookies; } this.cookies = initCookies(); return this.cookies; } ArmeriaClientHttpResponse(ResponseHeaders headers,
                              ResponseBodyPublisher publisher,
                              DataBufferFactoryWrapper<?> factoryWrapper); @Override HttpStatus getStatusCode(); @Override int getRawStatusCode(); @Override MultiValueMap<String, ResponseCookie> getCookies(); @Override Flux<DataBuffer> getBody(); @Override HttpHeaders getHeaders(); @Override String toString();  }
@Test public void getCookies() { final HttpHeaders httpHeaders = ResponseHeaders.of(HttpStatus.OK, HttpHeaderNames.of("blahblah"), "armeria", HttpHeaderNames.SET_COOKIE, "a=1; b=2"); final HttpResponse httpResponse = HttpResponse.of(httpHeaders); final ArmeriaClientHttpResponse response = response(new ArmeriaHttpClientResponseSubscriber(httpResponse), httpHeaders); assertThat(httpResponse.whenComplete().isDone()).isTrue(); assertThat(response.getStatusCode()).isEqualTo(org.springframework.http.HttpStatus.OK); assertThat(response.getHeaders().getFirst("blahblah")).isEqualTo("armeria"); final ResponseCookie cookie = response.getCookies().getFirst("a"); assertThat(cookie).isNotNull(); assertThat(cookie.getValue()).isEqualTo("1"); }