void () { ProcessOutput processOutput = new ProcessOutput(0); processOutput.appendStdout(myOutput); assertEquals(" Wrong commits number for " + myOutput, myExpected, HgPusher.getNumberOfPushedCommits(new HgCommandResult(processOutput))); }