@Test
public void testPathExists() throws Exception {

  File nonExisting = new File(temp.getRoot(), "i_do_not_exist");
  File existing = temp.newFolder();
  ShellCommandUtil.Result result;
  result = ShellCommandUtil.pathExists(existing.getAbsolutePath(), false);
  Assert.assertTrue(existing.exists());
  Assert.assertTrue(result.isSuccessful());
  result = ShellCommandUtil.pathExists(nonExisting.getAbsolutePath(), false);
  Assert.assertFalse(nonExisting.exists());
  Assert.assertFalse(result.isSuccessful());
}