public void testRouting() {
Client client = esSetup.client();
client.prepareIndex("users", "d", "1").setSource("field1", "value1").setRouting("2").execute().actionGet();
client.admin().indices().prepareRefresh().execute().actionGet();
ExportResponse response = executeExportRequest(
"{\"output_cmd\": \"cat\", \"fields\": [\"_id\", \"_source\", \"_routing\"]}");
List<Map<String, Object>> infos = getExports(response);
assertEquals("{\"_id\":\"2\",\"_source\":{\"name\":\"bike\"}}\n" +
"{\"_id\":\"4\",\"_source\":{\"name\":\"bus\"}}\n" +
"{\"_id\":\"1\",\"_source\":{\"field1\":\"value1\"},\"_routing\":\"2\"}\n",