public void validateEnvironment_w_invalid_runtime_version() {
Properties props = new Properties();
props.setProperty(TestDriverContext.KEY_FRAMEWORK_VERSION, "INVALID");
putPropertiesFile(props, new File(framework.getHome(), TestDriverContext.FRAMEWORK_VERSION_PATH));
try {
JobExecutor executor = new InProcessJobExecutor(context);
executor.validateEnvironment();
throw new IllegalStateException();
} catch (AssertionError e) {
// ok.
} catch (IllegalStateException e) {
throw new AssertionError(e);