I tried to mock but the environment of the integration test is different from the running App that is tests. Even if the integration test is set to LOCAL, the firefoxBrowser will connect to localhost:8080. This server is not running in the same environment of the integration test. So I can't mock the environment. 

The mock will change the environment of the integrationTest properties, but not the App (localhost:8080) that it is testing.