public void testDocTable() throws Exception {
execute("create table t1 (id int primary key, name string, details object(dynamic) as (size byte, created timestamp)) clustered into 10 shards with(number_of_replicas=1)");
ensureGreen();
DocTableInfo ti = (DocTableInfo) referenceInfos.getTableInfo(new TableIdent(null, "t1"));
assertThat(ti.ident().name(), is("t1"));
assertThat(ti.columns().size(), is(3));
assertThat(ti.primaryKey().size(), is(1));
assertThat(ti.primaryKey().get(0), is(new ColumnIdent("id")));
assertThat(ti.clusteredBy(), is(new ColumnIdent("id")));