### Question:
HttpTask extends AbstractTask { protected CloseableHttpResponse sendRequest(CloseableHttpClient client) throws IOException { RequestBuilder builder = createRequestBuilder(); Map<String, Property> paramsMap = ParamUtils.convert(ParamUtils.getUserDefParamsMap(taskExecutionContext.getDefinedParams()), taskExecutionContext.getDefinedParams(), httpParameters.getLocalParametersMap(), CommandType.of(taskExecutionContext.getCmdTypeIfComplement()), taskExecutionContext.getScheduleTime()); List<HttpProperty> httpPropertyList = new ArrayList<>(); if(CollectionUtils.isNotEmpty(httpParameters.getHttpParams() )){ for (HttpProperty httpProperty: httpParameters.getHttpParams()) { String jsonObject = JSONUtils.toJsonString(httpProperty); String params = ParameterUtils.convertParameterPlaceholders(jsonObject,ParamUtils.convert(paramsMap)); logger.info("http request params：{}",params); httpPropertyList.add(JSONUtils.parseObject(params,HttpProperty.class)); } } addRequestParams(builder,httpPropertyList); String requestUrl = ParameterUtils.convertParameterPlaceholders(httpParameters.getUrl(),ParamUtils.convert(paramsMap)); HttpUriRequest request = builder.setUri(requestUrl).build(); setHeaders(request,httpPropertyList); return client.execute(request); } HttpTask(TaskExecutionContext taskExecutionContext, Logger logger); @Override void init(); @Override void handle(); String getOutput(); @Override AbstractParameters getParameters();  }### Answer:
@Test public void testSendRequest(){ CloseableHttpClient client = httpTask.createHttpClient(); String statusCode = null; String body = null; try { CloseableHttpResponse response = httpTask.sendRequest(client) ; statusCode = String.valueOf(httpTask.getStatusCode(response)); body = httpTask.getResponseBody(response); int exitStatusCode = httpTask.validResponse(body, statusCode); Assert.assertNotEquals(-1,exitStatusCode); } catch (IOException e) { e.printStackTrace(); }; }