@Override
  public void startWatching() {
    if (settings.getProps().valueAsBoolean(ENABLE_STOP_COMMAND.getKey())) {
      super.startWatching();
    }
  }
@Test
  public void stop_watching_commands_if_thread_is_interrupted() {
    TestAppSettings appSettings = new TestAppSettings();
    StopRequestWatcherImpl underTest = new StopRequestWatcherImpl(appSettings, scheduler, commands);

    underTest.startWatching();
    underTest.interrupt();

    await().until(() -> !underTest.isAlive());
    assertThat(underTest.isAlive()).isFalse();
  }