when(plugin.getHandler()).thenReturn(handler);
GerritTrigger trigger = Setup.createDefaultTrigger(project);
when(project.getTrigger(GerritTrigger.class)).thenReturn(trigger);
trigger.setEscapeQuotes(false);
PatchsetCreated event = Setup.createPatchsetCreatedWithAccounts(owner, uploader, uploader);
GerritCause gerritCause = new GerritCause(event, true);
gerritCause = spy(gerritCause);
doReturn("http://mock.url").when(gerritCause).getUrl();
IGerritHudsonTriggerConfig config = Setup.createConfig();
config = spy(config);