/**
* Gives you a CommentAdded mock.
* @return CommentAdded mock.
*/
public static CommentAdded createCommentAdded() {
CommentAdded event = new CommentAdded();
Change change = new Change();
change.setBranch("branch");
change.setId("Iddaaddaa123456789");
change.setNumber("1000");
Account account = new Account();
account.setEmail("email@domain.com");
account.setName("Name");
change.setOwner(account);
change.setProject("project");
change.setSubject("subject");
change.setUrl("http://gerrit/1000");
event.setChange(change);
event.setProvider(new Provider(PluginImpl.DEFAULT_SERVER_NAME, "gerrit", "29418", "ssh", "http://gerrit/", "1"));
PatchSet patch = new PatchSet();
patch.setNumber("1");
patch.setRevision("9999");
event.setPatchset(patch);
List<Approval> approvals = new LinkedList<Approval>();
Approval approval = new Approval();
approval.setType("CRVW");
approval.setValue("1");
approvals.add(approval);
event.setApprovals(approvals);
return event;
}