assertThat(getResponse.getField("_routing").getValue().toString(), equalTo("1"));
}
@Test
public void testGetFields_nonLeafField() throws Exception {
assertAcked(prepareCreate("test").addAlias(new Alias("alias"))
.addMapping("my-type1", jsonBuilder().startObject().startObject("my-type1").startObject("properties")
.startObject("field1").startObject("properties")
.startObject("field2").field("type", "string").endObject()
.endObject().endObject()
.endObject().endObject().endObject())