GerritTrigger trigger = mock(GerritTrigger.class);
when(trigger.getGerritBuildFailedCodeReviewValue()).thenReturn(null);
when(trigger.getGerritBuildFailedVerifiedValue()).thenReturn(null);
when(project.getTrigger(GerritTrigger.class)).thenReturn(trigger);
PatchsetCreated event = Setup.createPatchsetCreated();
BuildMemory memory = new BuildMemory();
memory.completed(event, build);
IGerritHudsonTriggerConfig config = mock(IGerritHudsonTriggerConfig.class);