.field("field1", "value1")
.field("field2", "value2")
.copiedBytes());
assertThat(doc.rootDoc().get("field1"), equalTo("value1"));
assertThat(doc.rootDoc().get("field2"), equalTo("value2"));
}
@Test public void testDynamicFalse() throws IOException {
String mapping = XContentFactory.jsonBuilder().startObject().startObject("type")
.field("dynamic", "false")