@Test
public void should_create_forked_runner() {
props.setProperty("foo", "bar");
props.setProperty("sonarRunner.mode", "fork");
props.setProperty("sonarRunner.fork.jvmArgs", "-Xms128m -Xmx512m");
Runner runner = new RunnerFactory().create(props);
assertThat(runner).isInstanceOf(ForkedRunner.class);
assertThat(runner.properties().get("foo")).isEqualTo("bar");
assertThat(((ForkedRunner)runner).jvmArguments()).contains("-Xms128m", "-Xmx512m");
}