When using Spring4RestTemplateClientRule rule, generated client will add query parameter to the url even if the value is null. The problem is that a Spring controller will read the value as empty string in that case.
We should omit query parameter if the value is null.