@Test
public void testRenameColumn() throws Exception {

  String tableName = getFreeTableName();
  createMyTable(tableName);
  DBAccessorImpl dbAccessor = injector.getInstance(DBAccessorImpl.class);
  dbAccessor.executeQuery("insert into " + tableName + "(id, name, time) values(1, 'Bob', 1234567)");
  dbAccessor.renameColumn(tableName, "time", new DBColumnInfo("new_time", Long.class, 0, null, true));
  Statement statement = dbAccessor.getConnection().createStatement();
  ResultSet resultSet = statement.executeQuery("select new_time from " + tableName + " where id=1");
  int count = 0;
  while (resultSet.next()) {
    count++;
    long newTime = resultSet.getLong("new_time");
    assertEquals(newTime, 1234567L);
  }
  assertEquals(count, 1);
}