@Test
public void testRunCommand() throws Exception {

  ShellCommandUtil.Result result;
  if (ShellCommandUtil.LINUX) {
    result = ShellCommandUtil.
            runCommand(new String [] {"echo", "dummy"});
    Assert.assertEquals(0, result.getExitCode());
    Assert.assertEquals("dummy\n", result.getStdout());
    Assert.assertEquals("", result.getStderr());
    Assert.assertTrue(result.isSuccessful());
    result = ShellCommandUtil.
            runCommand(new String [] {"false"});
    Assert.assertEquals(1, result.getExitCode());
    Assert.assertFalse(result.isSuccessful());
  } else {
    // Skipping this test under Windows/Mac
  }
}