import com.google.common.io.Files;
public class TestUtils {
public static RecordIterator jsonToRecordIterator(String schemaPath, String j) throws IOException {
InputStream is = new ByteArrayInputStream(j.getBytes());
JSONRecordReader reader = new JSONRecordReader(new SchemaPath(schemaPath, ExpressionPosition.UNKNOWN), DrillConfig.create(), is, null);
return reader.getIterator();
}