@Test
public void testAddEnvironmentVariables() {

    EquinoxLaunchConfiguration config = new EquinoxLaunchConfiguration(null);
    Map<String, String> envVariables = new HashMap<>();
    envVariables.put("key1", "value1");
    envVariables.put("key2", null);
    config.addEnvironmentVariables(envVariables);
    Map<String, String> environment = config.getEnvironment();
    assertThat(environment.size(), equalTo(2));
    assertThat(environment.get("key1"), equalTo("value1"));
    assertThat(environment.get("key2"), equalTo(""));
}