HeaderMapSpec requestHeaderSpec = new HeaderMapSpec.Builder().build();
HeaderMap requestHeaders = new HeaderMap.Builder(requestHeaderSpec).build();
RequestBodySpec requestBodySpec = new RequestBodySpec.Builder()
.setSimpleBody(String.class)
.build();
RequestBody requestBody = new RequestBody.Builder(requestBodySpec).build();
for (HttpMethod method : new HttpMethod[]{HttpMethod.GET, HttpMethod.DELETE}) {
HttpUrlConnectionMock conn = new HttpUrlConnectionMock();
sender.send(conn, new WebServiceRequest(method, requestHeaders, null, requestBody, null, false));
assertNull(conn.getHeaders().get("Content-Type"));
}