Using Spring to Switch Environments in Automated Tests

When we create our automated tests, we don't only want to run them in one test environment. We also don't want to create one automated test per each test environment. However, we...