### Question:
HttpTask extends AbstractTask { protected RequestBuilder createRequestBuilder() { if (httpParameters.getHttpMethod().equals(HttpMethod.GET)) { return RequestBuilder.get(); } else if (httpParameters.getHttpMethod().equals(HttpMethod.POST)) { return RequestBuilder.post(); } else if (httpParameters.getHttpMethod().equals(HttpMethod.HEAD)) { return RequestBuilder.head(); } else if (httpParameters.getHttpMethod().equals(HttpMethod.PUT)) { return RequestBuilder.put(); } else if (httpParameters.getHttpMethod().equals(HttpMethod.DELETE)) { return RequestBuilder.delete(); } else { return null; } } HttpTask(TaskExecutionContext taskExecutionContext, Logger logger); @Override void init(); @Override void handle(); String getOutput(); @Override AbstractParameters getParameters();  }### Answer:
@Test public void testCreateRequestBuilder(){ RequestBuilder requestBuilder = httpTask.createRequestBuilder(); Assert.assertEquals(RequestBuilder.get().getMethod(),requestBuilder.getMethod()); }