@Test
public void testIllegalTimeout() {

    try {
        int exitCode = ProcessHelper.runWithTimeout(-1, process);
        fail();
    } catch (Exception e) {
        assertEquals("negative timeout: -1", e.getMessage());
    }
}