### Question:
SignatureBase { public String getEncodedUrl() { return encodedUrl; } 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 testGetBaseStringURI() throws UnsupportedEncodingException { SignatureBase request = new SignatureBase(parameters, url, requestMethod); assertEquals(request.getEncodedUrl(), "https%3A%2F%2Flocalhost%3A9443%2Fregister"); request = new SignatureBase(parameters, "https: assertEquals(request.getEncodedUrl(), "https%3A%2F%2Flocalhost%2Fregister"); request = new SignatureBase(parameters, "http: assertEquals(request.getEncodedUrl(), "http%3A%2F%2Flocalhost%2Fregister"); }