Run func tests with:
mvn install -Pit.migration -B -Dxvfb.enable=true -Djdbc.host=<hostname> -Djdbc.port=<port> -Djdbc.database=<database> -Djdbc.user=<user> -Djdbc.password=<password>

REST tests are written using rest-assured, usage guide here: http://code.google.com/p/rest-assured/wiki/Usage
