@Test
public void testRow() {

	Row row = new Row(2);
	row.setField(0, "string");
	row.setField(1, 15);
	TypeInformation<Row> rowInfo = TypeExtractor.getForObject(row);
	Assert.assertEquals(rowInfo.getClass(), RowTypeInfo.class);
	Assert.assertEquals(2, rowInfo.getArity());
	Assert.assertEquals(
		new RowTypeInfo(
			BasicTypeInfo.STRING_TYPE_INFO,
			BasicTypeInfo.INT_TYPE_INFO),
		rowInfo);
	Row nullRow = new Row(2);
	TypeInformation<Row> genericRowInfo = TypeExtractor.getForObject(nullRow);
	Assert.assertEquals(genericRowInfo, new GenericTypeInfo<>(Row.class));
}