client.prepareIndex("test", "type1", "1").setSource("field1", "value1_2", "field2", "value2_2").execute().actionGet();
response = client.prepareGet("test", "type1", "1").execute().actionGet();
assertThat(response.exists(), equalTo(true));
assertThat(response.sourceAsMap().get("field1").toString(), equalTo("value1_2"));
assertThat(response.sourceAsMap().get("field2").toString(), equalTo("value2_2"));
DeleteResponse deleteResponse = client.prepareDelete("test", "type1", "1").execute().actionGet();
assertThat(deleteResponse.notFound(), equalTo(false));
response = client.prepareGet("test", "type1", "1").execute().actionGet();