public class TestSchemaPrimitive {
@Test
public void testSchemaValid1() throws ParseException {
String strSch = "f1:int, f2:long, f3:float, f4:bool, f5:string, f6:bytes";
TableSchemaParser parser;
Schema schema;
parser = new TableSchemaParser(new StringReader(strSch));
schema = parser.RecordSchema(null);
System.out.println(schema);
ColumnSchema f2 = schema.getColumn(1);
Assert.assertEquals("f2", f2.getName());
Assert.assertEquals(ColumnType.LONG, f2.getType());