public static HardStopRequestWatcherImpl create(Scheduler scheduler, FileSystem fs) {
    DefaultProcessCommands commands = DefaultProcessCommands.secondary(fs.getTempDir(), ProcessId.APP.getIpcIndex());
    return new HardStopRequestWatcherImpl(scheduler, commands);
  }
@Test
  public void create_instance_with_default_delay() throws IOException {
    FileSystem fs = mock(FileSystem.class);
    when(fs.getTempDir()).thenReturn(temp.newFolder());

    HardStopRequestWatcherImpl underTest = HardStopRequestWatcherImpl.create(scheduler, fs);

    assertThat(underTest.getDelayMs()).isEqualTo(500L);
  }