config.put(JschProcessExecutor.KEY_HOST, "example.com");
config.put(JschProcessExecutor.KEY_PRIVATE_KEY, privateKey.getAbsolutePath());
config.put(JschProcessExecutor.KEY_PASS_PHRASE, "Hello, world!");
Map<String, String> variables = new HashMap<String, String>();
VariableResolver resolver = new VariableResolver(variables);
JschProcessExecutor extracted = JschProcessExecutor.extract("testing", config, resolver);
assertThat(extracted.getUser(), is("tester"));
assertThat(extracted.getHost(), is("example.com"));
assertThat(extracted.getPort(), is(nullValue()));