@Test
public void testNodeHealthScriptShouldRun() throws IOException {

  assertFalse("Node health script should start",
      NodeHealthScriptRunner.shouldRun("script",
          nodeHealthscriptFile.getAbsolutePath()));
  writeNodeHealthScriptFile("", false);
  // Node health script should not start if the node health script is not
  // executable.
  assertFalse("Node health script should start",
      NodeHealthScriptRunner.shouldRun("script",
          nodeHealthscriptFile.getAbsolutePath()));
  writeNodeHealthScriptFile("", true);
  assertTrue("Node health script should start",
      NodeHealthScriptRunner.shouldRun("script",
          nodeHealthscriptFile.getAbsolutePath()));
}