*DO NOT MERGE* fix ConsentTest

IMPORTANT: Do not merge this yet. I just found out that bridge-testing@ needs to be configured to receive emails from support@sagebridge.org.

Includes the following changes:

* Fix TestUserHelper to create accounts with bridge-testing+[semi-unique token]@sagebase.org. This is so test emails don't impact our SES bounce rate.

* Make BaseApiCaller.toQueryString() URL encode query param values. Otherwise, they get garbled by the server. (Specifically, the +'s in test email addresses.)

* Re-enable ConsentTest.
Personal experience plus a brief Stack Overflow search tells me that this
is the most straightforward way to do it:
http://stackoverflow.com/questions/724043/http-url-address-encoding-in-java
http://stackoverflow.com/questions/10786042/java-url-encoding

The only thing that bothers me here is that we have to specify the CharSet
and handle the UnsupportedEncodingException (which never happens) because
the HTTP standard says to use UTF-8 to encode non-ASCII chars.

On Thu, Dec 4, 2014 at 3:09 PM, Alx Dark <notifications@github.com> wrote:

> In src/main/java/org/sagebionetworks/bridge/sdk/BaseApiCaller.java:
>
> >      protected String toQueryString(Map<String,String> parameters) {
> >          checkNotNull(parameters);
> >
> >          List<String> list = Lists.newArrayList();
> >          for (Map.Entry<String, String> entry : parameters.entrySet()) {
> > -            list.add(entry.getKey() + "=" + entry.getValue());
> > +            String encodedParamValue;
> > +            try {
> > +                encodedParamValue = URLEncoder.encode(entry.getValue(), Charsets.UTF_8.name());
>
> Seems like there has to be, somewhere in some Java library, a really
> easy-to-use URL parsing class that handles ensuring that URLs are correctly
> formed, correctly escaped etc. But I didn't find one.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Sage-Bionetworks/BridgeJavaSDK/pull/48/files#r21344258>
> .
>