when(project.getProperty(ParametersDefinitionProperty.class)).thenReturn(
new ParametersDefinitionProperty(
new StringParameterDefinition("key", "default value", ""),
new BooleanParameterDefinition("key2", false, "")));
Sender sender = new Sender("sender");
cmd.getReply(bot, sender, new String[]{ "build", "project", "3s", "key=value", "key2=true" });
ArgumentCaptor<ParametersAction> captor = ArgumentCaptor.forClass(ParametersAction.class);
verify(project).scheduleBuild(anyInt(), any(Cause.class),
captor.capture());