public String createNote(String notePath,
                         AuthenticationInfo subject) throws IOException {
    return createNote(notePath, interpreterSettingManager.getDefaultInterpreterSetting().getName(),
        subject);
  }
@Test
  void testScheduleDisabled() throws InterruptedException, IOException {
    zConf.setProperty(ConfVars.ZEPPELIN_NOTEBOOK_CRON_ENABLE.getVarName(), "false");
    final int timeout = 10;
    final String everySecondCron = "* * * * * ?";
    final CountDownLatch jobsToExecuteCount = new CountDownLatch(5);
    final String noteId = notebook.createNote("note1", anonymous);

    executeNewParagraphByCron(noteId, everySecondCron);
    afterStatusChangedListener = new StatusChangedListener() {
      @Override
      public void onStatusChanged(Job<?> job, Status before, Status after) {
        if (after == Status.FINISHED) {
          jobsToExecuteCount.countDown();
        }
      }
    };

    // This job should not run because "ZEPPELIN_NOTEBOOK_CRON_ENABLE" is set to false
    assertFalse(jobsToExecuteCount.await(timeout, TimeUnit.SECONDS));

    terminateScheduledNote(noteId);
    afterStatusChangedListener = null;
  }