ExecHelper eh = new ExecHelper(gp, repo.getWorkingDir());
eh.run("hg", "diff", "-c", "0", "-U", "0", df.getPath().toString());
//
ByteArrayOutputStream bos = new ByteArrayOutputStream();
HgDiffCommand diffCmd = new HgDiffCommand(repo).file(df);
diffCmd.changeset(0).executeParentsAnnotate(new DiffOutInspector(new PrintStream(bos)));
//
String[] apiResult = splitLines(bos.toString());
String[] expected = splitLines(gp.result());
Assert.assertArrayEquals(expected, apiResult);
}