### Question:
UriParser { public void parse(Uri context, final String originalUrl) { assertNotNull(originalUrl, "originalUrl"); this.originalUrl = originalUrl; this.end = originalUrl.length(); trimLeft(); trimRight(); currentIndex = start; if (!isFragmentOnly()) { computeInitialScheme(); } boolean isRelative = overrideWithContext(context); trimFragment(); inheritContextQuery(context, isRelative); boolean queryOnly = computeQuery(); parseAuthority(); computePath(queryOnly); }  void parse(Uri context, final String originalUrl); public String scheme; public String host; public int port; public String query; public String fragment; public String path; public String userInfo; }### Answer:
@Test public void testUrlHasLeadingAndTrailingWhiteSpace() { UriParser parser = new UriParser(); String url = " http: parser.parse(null, url); assertUriEquals(parser, URI.create(url.trim())); }