PatchsetCreated event = Setup.createPatchsetCreated();
BuildMemory memory = new BuildMemory();
memory.completed(event, build);
IGerritHudsonTriggerConfig config = mock(IGerritHudsonTriggerConfig.class);
String parameterString = "gerrit review MSG=Failed VERIFIED=<VERIFIED> CODEREVIEW=<CODE_REVIEW>";
when(config.getGerritCmdBuildFailed()).thenReturn(parameterString);
when(config.getGerritBuildFailedVerifiedValue()).thenReturn(-1);
when(config.getGerritBuildFailedCodeReviewValue()).thenReturn(-1);
GerritNotifier notifier = new GerritNotifier(config, mockGerritCmdRunner, hudson);
notifier.buildCompleted(memory.getMemoryImprint(event), taskListener);
String parameterStringExpected = "gerrit review MSG=Failed VERIFIED=-1 CODEREVIEW=-1";