### Question:
SignatureBase { public String getEncodedParametersString() { return encodedParametersString; } SignatureBase(final TreeMap<String, String> parameters,
            final String url, final String requestMethod); void setSignatureBasicString(final String requestMethod); String getEncodedUrl(); String getEncodedParametersString(); String getSignatureBaseString();  }### Answer:
@Test public void testGetParametersQuery() throws UnsupportedEncodingException { SignatureBase request = new SignatureBase(parameters, url, requestMethod); assertEquals(request.getEncodedParametersString(), "paramA=value%20A&paramB=value%20B"); }