@Test
public void testAddPKConstraint() throws Exception{

  String tableName = getFreeTableName();
  DBAccessorImpl dbAccessor = injector.getInstance(DBAccessorImpl.class);
  List<DBColumnInfo> columns = new ArrayList<DBColumnInfo>();
  columns.add(new DBColumnInfo("id", Long.class, null, null, false));
  columns.add(new DBColumnInfo("sid", Long.class, null, null, false));
  columns.add(new DBColumnInfo("data", char[].class, null, null, true));
  dbAccessor.createTable(tableName, columns);
  dbAccessor.addPKConstraint(tableName, "PK_sid", "sid");
  try {
    //List<String> indexes = dbAccessor.getIndexesList(tableName, false);
    //assertTrue(CustomStringUtils.containsCaseInsensitive("pk_sid", indexes));
  } finally {
    dbAccessor.dropTable(tableName);
  }
}