JPA testing in differnt envs

I have an app and some IT tests that should access to a test database.

The config param for database are

db {
default {
driver = org.postgresql.Driver
url = “jdbc:postgresql://localhost:5432/db?currentSchema=public”
username = “postgres”
password = “*******”
jndiName=defaultDS
}
}

db-test{
driver = org.postgresql.Driver
url = “jdbc:postgresql://localhost:5432/test_db”
username = “postgres”
password = “**********”
jndiName=TestDS
}

The param may be overriden with a envVariable conf file.

The problem is that evolutions may take the config wtihout problem but JPA configuration always takes the normal one.

Is there a way to inject / override with guice or any other way to this easy to work in all envs?

Thanks