### Question:
PartialUriTemplateComponents { public String toString() { return baseUri + getQuery() + fragmentIdentifier; } PartialUriTemplateComponents(String baseUri, String queryHead, String queryTail, String
            fragmentIdentifier, List<String> variableNames); List<String> getVariableNames(); boolean isBaseUriTemplated(); String getBaseUri(); String getQueryHead(); String getQueryTail(); String getQuery(); String getFragmentIdentifier(); String toString(); boolean hasVariables();  }### Answer:
@Test public void testToStringWithQueryContinuation() throws Exception { PartialUriTemplateComponents partialUriTemplateComponents = new PartialUriTemplateComponents("http: ".com", "?foo=bar", "baz,gnarf", "#fragmentIdentifier", Arrays.asList("baz", "gnarf")); Assert.assertEquals("http: .toString()); }
@Test public void testToStringWithQueryVariables() throws Exception { PartialUriTemplateComponents partialUriTemplateComponents = new PartialUriTemplateComponents("http: ".com", "", "baz,gnarf", "#fragmentIdentifier", Arrays.asList("baz", "gnarf")); Assert.assertEquals("http: }