### Question:
Row { public Row addField(Field field) { requireNonNull(field, "field is null"); fields.add(field); return this; } Row();  Row(Row row); Row addField(Field field); Row addField(Object nativeValue, Type type); Field getField(int i); List<Field> getFields(); int length(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test(expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "type is null") public void testRowTypeIsNull() { Row r1 = new Row(); r1.addField(VARCHAR, null); }