// given
String body = "body";
Cookie cookie = new Cookie("name", "value");
Header header = new Header("name", "value");
Integer statusCode = 200;
HttpResponse httpRequest = new HttpResponse()
.withBody(body)
.withCookies(cookie)
.withHeaders(header)
.withStatusCode(statusCode);
// when
HttpResponse builtHttpResponse = new HttpResponseDTO(httpRequest).buildObject();
// then
assertThat(builtHttpResponse.getBody(), Is.<org.mockserver.model.Body>is(exact(body)));
assertThat(builtHttpResponse.getCookies(), containsInAnyOrder(cookie));
assertThat(builtHttpResponse.getHeaders(), containsInAnyOrder(header));
assertThat(builtHttpResponse.getStatusCode(), is(statusCode));
}