VagrantEnvironmentConfig config = new VagrantEnvironmentConfig(
vmConfigs);
Vagrant vagrant = new Vagrant(true);
File tempDir = VagrantTestUtils.createTempDir();
VagrantEnvironment env = vagrant.createEnvironment(tempDir, config);
VagrantVm vm = env.getAllVms().iterator().next();
Assert.assertEquals("unitTestVm", vm.getName());
} catch (Exception e) {
e.printStackTrace();
Assert.fail("");
}
}