// Without that available call in checkStderr typically not
// everything from stderr will be read and this testcase fails
// Assume.assumeTrue(System.getProperty("java.runtime.version").compareTo("1.7")
// < 0);
BaseRepository repo = getTestRepository();
RepositoryConfiguration configuration = repo.getConfiguration();
int bufSize = configuration.getStderrBufferSize();
String longMessage = Strings.repeat("x", bufSize + 100) + "A";
GenericCommand cmd = new GenericCommand(repo, "javahg-stderr");
try {
cmd.execute(longMessage);
assertFailedExecution(cmd);