row[4] = new Byte((byte) 0xad); row[5] = new Double(555.66d); row[6] = new Float(777.88d); row[7] = new Short((short) 999); row[8] = new Date();
  public void testWriteAndRead() throws Exception {    Database db = create();    createTestTable(db);    Object[] row = new Object[9];    row[0] = "Tim";    row[1] = "R";    row[2] = "McCune";    row[3] = null;    row[4] = new Byte((byte) 0xad);    row[5] = new Double(555.66d);    row[6] = new Float(777.88d);    row[7] = new Short((short) 999);    row[8] = new Date();    Table table = db.getTable("Test");    int count = 1000;    for (int i = 0; i < count; i++) {       table.addRow(row);    }    for (int i = 0; i < count; i++) {      Map readRow = table.getNextRow();      assertEquals(row[0], readRow.get("A"));      assertEquals(row[1], readRow.get("B"));      assertEquals(row[2], readRow.get("C"));      assertEquals(row[3], readRow.get("D"));      assertEquals(row[4], readRow.get("E"));      assertEquals(row[5], readRow.get("F"));      assertEquals(row[6], readRow.get("G"));      assertEquals(row[7], readRow.get("H"));    }  }