}
@Test
public void testProcessDestroyerEventsOnStreamsFail() throws Exception {
MockProcessDestroyer mock = new MockProcessDestroyer();
ExecuteStreamHandler streams = new SetFailExecuteStreamHandler();
try {
new ProcessExecutor().command("java", "-version").streams(streams).destroyer(mock).execute();
Assert.fail("IOException expected");
}
catch (IOException e) {