IEnvironmentVariable existingEnvironmentVariable = app.getEnvironmentVariables().get("FOO");
assertThat(existingEnvironmentVariable.getName()).isEqualTo("FOO");
// operation
try {
app.addEnvironmentVariable("FOO", "123");
fail("Expected an exception here...");
} catch (OpenShiftException e) {
// expected
}