@Test
public void missingOutputFileInParallelMode() throws Exception {

    when(commandLine.hasOption("task-count")).thenReturn(true);
    when(commandLine.hasOption("output-file")).thenReturn(false);
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Missing required option: output-file in parallel mode");
    tool.run(commandLine, runningContext);
}