Environment env(String... keyVals) {
if (keyVals.length % 2 != 0) {
throw new IllegalArgumentException();
}
Environment result = new Environment();
for (int ii = 0; ii < keyVals.length; ii+=2) {
result.put(keyVals[ii], keyVals[ii+1]);
}
return result;
}