### Question:
TupleDesc implements Serializable { public Type getFieldType(int i) throws NoSuchElementException { return items.get(i).fieldType; } TupleDesc(Type[] typeAr, String[] fieldAr);  TupleDesc(Type[] typeAr); Iterator<TDItem> iterator(); int numFields(); String getFieldName(int i); Type getFieldType(int i); int fieldNameToIndex(String name); int getSize(); static TupleDesc merge(TupleDesc td1, TupleDesc td2); boolean equals(Object o); int hashCode(); String toString(); public List<TDItem> items; }### Answer:
@Test public void getType() { int[] lengths = new int[] { 1, 2, 1000 }; for (int len: lengths) { TupleDesc td = Utility.getTupleDesc(len); for (int i = 0; i < len; ++i) assertEquals(Type.INT_TYPE, td.getFieldType(i)); } }