public void testMakeStaticTableCreate() throws CObjectParseException, IOException {
String json = TestHelpers.readFileToString(this.getClass(), "CObjectCQLGeneratorTestData.js");
CDefinition def = CDefinition.fromJsonString(json);
Subject subject = new Subject(1000);
CQLStatement cql = subject.makeStaticTableCreate(def);
CQLStatement expected = CQLStatement.make(
"CREATE TABLE \"testspace\".\"testtype\" (id timeuuid PRIMARY KEY, filtered int,data1 varchar,data2 varchar,data3 varchar,instance bigint,type int,foreignid bigint);",
TABLE_NAME
);
assertEquals(expected, cql);
}