public static void initRequestEntity(HttpRequestBase requestBase, Object body, Header header) throws Exception {
        if (body == null) {
            return;
        }
        if (requestBase instanceof HttpEntityEnclosingRequest) {
            HttpEntityEnclosingRequest request = (HttpEntityEnclosingRequest) requestBase;
            MediaType mediaType = MediaType.valueOf(header.getValue(HttpHeaderConsts.CONTENT_TYPE));
            ContentType contentType = ContentType.create(mediaType.getType(), mediaType.getCharset());
            HttpEntity entity;
            if (body instanceof byte[]) {
                entity = new ByteArrayEntity((byte[]) body, contentType);
            } else {
                entity = new StringEntity(body instanceof String ? (String) body : JacksonUtils.toJson(body),
                        contentType);
            }
            request.setEntity(entity);
        }
    }
@Test
    void testInitRequestEntity5() throws Exception {
        HttpDelete httpDelete = new HttpDelete("");
        
        HttpUtils.initRequestEntity(httpDelete, null, null);
        
        // nothing change
        assertEquals(new HttpDelete("").getMethod(), httpDelete.getMethod());
        assertArrayEquals(new HttpDelete("").getAllHeaders(), httpDelete.getAllHeaders());
    }