*/
@Test
public void setOrCreateParametersUrlNoProviderAnyServer() throws Exception {
PatchsetCreated created = Setup.createPatchsetCreated();
created.setProvider(null);
AbstractProject project = mock(AbstractProject.class);
GerritTrigger trigger = Setup.createDefaultTrigger(null);
trigger.setServerName(GerritServer.ANY_SERVER);
when(project.getTrigger(eq(GerritTrigger.class))).thenReturn(trigger);
LinkedList<ParameterValue> parameters = new LinkedList<ParameterValue>();
GerritTriggerParameters.setOrCreateParameters(created, project, parameters);
StringParameterValue param = findParameter(GerritTriggerParameters.GERRIT_CHANGE_URL, parameters);
assertNotNull(param);
assertTrue(param.value.startsWith(config.getGerritFrontEndUrl()));