@Test
void shouldGetChartDetail(RestService restService) {
GetChartDetailRequest request =
GetChartDetailRequestBuilder.defaultRequest();
GetChartDetailResponse response = restService.restClient()
.post(
spec -> spec.body(request),
ChartEndpoints.GET_CHART_DETAIL
)
.should(haveStatusCode(200))
.as(GetChartDetailResponse.class);
assertEquals(0, response.getStatus().getCode());
assertEquals("success", response.getStatus().getText());
}