when(project.getTrigger(GerritTrigger.class)).thenReturn(triggerWithReadableMessageOff);
//the Trigger is creating parameters with escaped quote in "subject"
ParametersAction paremetersAction =
triggerWithReadableMessageOff.createParameters(event, project);
ParameterValue strPara =
new Base64EncodedStringParameterValue(GERRIT_CHANGE_COMMIT_MESSAGE.name(), stringEncoded);
verify(change, times(1)).getCommitMessage();
assertEquals(strPara, paremetersAction.getParameter(GERRIT_CHANGE_COMMIT_MESSAGE.name()));
}