* @param project The project.
* @param ref The ref.
* @return a RefUpdated event
*/
public static RefUpdated createRefUpdated(String serverName, String project, String ref) {
RefUpdated event = new RefUpdated();
Account account = new Account();
account.setEmail("email@domain.com");
account.setName("Name");
event.setAccount(account);
event.setProvider(new Provider(serverName, "gerrit", "29418", "ssh", "http://gerrit/", "1"));
RefUpdate refUpdate = new RefUpdate();
refUpdate.setNewRev("2");
refUpdate.setOldRev("1");
refUpdate.setProject(project);
refUpdate.setRefName(ref);
event.setRefUpdate(refUpdate);
return event;
}