Process process = getFirstServer(repo).getProcess();
process.destroy();
// Process is dead and we can't send command
try {
VersionCommand cmd = VersionCommand.on(repo);
cmd.execute();
assertFailedExecution(cmd);
} catch (UnexpectedServerTerminationException e) {
// success
}
repo.close();