### Question:
SignatureBase { public String getSignatureBaseString() { return signatureBaseString; } 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 testSignatureBaseString() throws UnsupportedEncodingException { SignatureBase request = new SignatureBase(parameters, url, requestMethod); assertEquals(request.getSignatureBaseString(), "POST&https%3A%2F%2Flocalhost%3A9443%2Fregister&paramA=value%20A&paramB=value%20B"); }