/**
* Gives you a ChangeRestored mock.
* @return ChangeRestored mock.
*/
public static ChangeRestored createChangeRestored() {
ChangeRestored event = new ChangeRestored();
Change change = new Change();
change.setBranch("branch");
change.setId("Iddaaddaa123456789");
change.setNumber("1000");
Account account = new Account("Name", "email@domain.com");
change.setOwner(account);
change.setProject("project");
change.setSubject("subject");
change.setUrl("http://gerrit/1000");
event.setChange(change);
PatchSet patch = new PatchSet();
patch.setNumber("1");
patch.setRevision("9999");
event.setPatchset(patch);
Account restorer = new Account("Name1", "email@domain1.com");
event.setRestorer(restorer);
return event;
}