String parameterString = "gerrit review MSG=OK VERIFIED=<VERIFIED> CODEREVIEW=<CODE_REVIEW>";
when(config.getGerritCmdBuildSuccessful()).thenReturn(parameterString);
when(config.getGerritBuildSuccessfulVerifiedValue()).thenReturn(1);
when(config.getGerritBuildSuccessfulCodeReviewValue()).thenReturn(1);
GerritNotifier notifier = new GerritNotifier(config, mockGerritCmdRunner, hudson);
notifier.buildCompleted(memory.getMemoryImprint(event), taskListener);
String parameterStringExpected = "gerrit review MSG=OK VERIFIED=1 CODEREVIEW=1";
verify(mockGerritCmdRunner).sendCommand(parameterStringExpected);
}