### Question:
Row { public Row() {} 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 public void testRow() { Row r1 = new Row(); r1.addField(new Field(AccumuloRowSerializer.getBlockFromArray(VARCHAR, ImmutableList.of("a", "b", "c")), new ArrayType(VARCHAR))); r1.addField(true, BOOLEAN); r1.addField(new Field(10592L, DATE)); r1.addField(123.45678, DOUBLE); r1.addField(new Field((long) floatToIntBits(123.45678f), REAL)); r1.addField(12345678L, INTEGER); r1.addField(new Field(12345678L, BIGINT)); r1.addField(new Field(12345L, SMALLINT)); r1.addField(new GregorianCalendar(1970, 0, 1, 12, 30, 0).getTime().getTime(), TIME); r1.addField(new Field(Timestamp.valueOf(LocalDateTime.of(1999, 1, 1, 12, 30, 0)).getTime(), TIMESTAMP_MILLIS)); r1.addField((long) 123, TINYINT); r1.addField(new Field(Slices.wrappedBuffer("O'Leary".getBytes(UTF_8)), VARBINARY)); r1.addField(utf8Slice("O'Leary"), VARCHAR); r1.addField(null, VARCHAR); assertEquals(r1.length(), 14); Row r2 = new Row(r1); assertEquals(r2, r1); }