assertThat(defines, is(arrayContaining(
"key1=value1",
"key2+=value2",
"key3=value31", "key3+=value32",
"key4+=value41", "key4+=value42")));
DriverOptions driverOptions = new DriverOptions(cli);
DesiredCapabilities caps = new DesiredCapabilities();
caps.merge(driverOptions.getCapabilities());
assertThat((String) caps.getCapability("key1"), is(equalTo("value1")));
assertThat((String[]) caps.getCapability("key2"), is(arrayContaining("value2")));
assertThat((String[]) caps.getCapability("key3"), is(arrayContaining("value31", "value32")));
assertThat((String[]) caps.getCapability("key4"), is(arrayContaining("value41", "value42")));
assertThat(driverOptions.toString(), is(not("[]")));
}