@Test
public void prepareRequestCreatesRequestWithContentTypeHeader() throws IOException {

    // given
    Bulk bulk = createDefaultTestBufferedBulk();
    // when
    BufferedJestHttpClient client = createDefaultTestHttpClient();
    HttpUriRequest request = client.prepareRequest((BufferedBulk) bulk);
    // then
    HttpEntity entity = ((HttpEntityEnclosingRequest) request).getEntity();
    Assert.assertEquals(ContentType.APPLICATION_JSON.toString(), entity.getContentType().getValue());
}