@Test
public void throwsWhenProcessFails() {

    RuntimeException e = Assertions.assertThrows(RuntimeException.class, () -> {
        IoUtils.runCommand("thisCommandDoesNotExist" + new Random().nextInt(1000));
    });
    assertThat(e.getMessage(), containsString("failed with exit code"));
}