NativeProcessUtils implements InternalProcessUtils { @Override public boolean isProcessAlive(final int pid) { isTrue(pid > 0, "Invalid pid '" + pid + "' specified"); return nativeCalls.isProcessActive(pid); }  @Override boolean isProcessAlive(final int pid); @Override boolean killProcess(final int pid); @Override boolean isAvailable(); @Override boolean isAttachApiAvailable();  }
@Test public void isProcessAlive_livePid_returnsTrue() throws Exception { assertThat(nativeProcessUtils.isProcessAlive(actualPid)).isTrue(); }
@Test @Retry(3) public void isProcessAlive_deadPid_returnsFalse() throws Exception { assertThat(nativeProcessUtils.isProcessAlive(fakePid)).isFalse(); }