@Test
public void testProcessConfigBuilderEnvironment() throws Exception {

	// Default environment
	ProcessConfig.Builder builder = new ProcessConfig.Builder();
	builder.setArguments(_createArguments(_JPDA_OPTIONS1));
	builder.setBootstrapClassPath(System.getProperty("java.class.path"));
	builder.setReactClassLoader(
		LocalProcessExecutorTest.class.getClassLoader());
	ProcessChannel<HashMap<String, String>> processChannel =
		_localProcessExecutor.execute(
			builder.build(), Operations.GET_ENVIRONMENT);
	Future<HashMap<String, String>> future =
		processChannel.getProcessNoticeableFuture();
	Assert.assertEquals(System.getenv(), future.get());
	// New environment
	Map<String, String> environmentMap = new HashMap<>();
	environmentMap.put("key1", "value1");
	environmentMap.put("key2", "value2");
	builder.setEnvironment(environmentMap);
	processChannel = _localProcessExecutor.execute(
		builder.build(), Operations.GET_ENVIRONMENT);
	future = processChannel.getProcessNoticeableFuture();
	Map<String, String> actualEnvironmentMap = future.get();
	Assert.assertEquals("value1", actualEnvironmentMap.get("key1"));
	Assert.assertEquals("value2", actualEnvironmentMap.get("key2"));
}