Code to add a url parameter wa snot handling the case were there was an
existing parameter already added.
Enabling the new Java unit tests and adding mock test data.
Merge pull request #1144 from markewallace/FixAddParameters

Fix addParameters utility method