### Question:
Url { public Url(String url) { this.url = url; } Url(String url); @Nullable String getQuery();  }### Answer:
@Test public void testUrl() { assertQueryStringMatches("foo&bar", "http: assertQueryStringMatches("foo&bar", "http: assertQueryStringMatches("foo&bar?def", "http: assertQueryStringMatches("foo&bar?def", "http: assertQueryStringMatches("", "http: assertQueryStringMatches(null, "http: }