@Test
public void writeTablet2() throws IOException, WriteProcessException {

  Tablet tablet = new Tablet("d1", Arrays.asList(
      new MeasurementSchema("s1", TSDataType.FLOAT, TSEncoding.RLE, CompressionType.SNAPPY),
      new MeasurementSchema("s2", TSDataType.INT32, TSEncoding.RLE, CompressionType.SNAPPY)));
  tablet.timestamps[0] = 10000;
  ((float[]) tablet.values[0])[0] = 5.0f;
  tablet.rowSize = 1;
  writer.write(tablet);
  closeFile();
  //in this case, the value of s2 = 0 at time 10000.
  readOneRow(0);
}