ProcessBuilder toolPb = PowerMock.createMock(ProcessBuilder.class);
Process toolProcess = createMock(Process.class);
ProcessBuilder dependPb = PowerMock.createMock(ProcessBuilder.class);
Process dependProcess = createMock(Process.class);
Console console = createMock(Console.class);
console.info("ANTLR Tool v%s (%s)", ToolOptionsProvider.VERSION, toolPath.toFile());
console.info("%s %s", fileName, Joiner.on(" ").join(command));
console.info("warning: warning message");
console.error("error: undefined rule: 'x'");
console.error("\n%s warning(s)\n", 1);
console.error("%s error(s)\n", 1);
console.error("BUILD FAIL");
console.info(eq("Total time: %s %s(s)\n"), isA(Number.class), eq("millisecond"));
expect(file.getName()).andReturn(fileName);
expect(file.getPersistentProperty(generatedFiles)).andReturn(
lexerPath.toOSString() + File.separator + parserPath.toOSString());
expect(file.getParent()).andReturn(fileParent).times(3);