@Test
public void testSuccessfulBulkRequest() {

	elasticsearchClient.sendBulk(os ->
			os.write(("{ \"index\" : { \"_index\" : \"test\", \"_type\" : \"type1\", \"_id\" : \"1\" } }\n" +
					"{ \"field1\" : \"value1\" }\n").getBytes("UTF-8")));
	assertThat(testAppender.list).hasSize(0);
}