### Question:
Endpoint { public String build() { if (queryString.length() == 0) { return url.toString(); } return url + "?" + queryString; } Endpoint(String url); Endpoint addPath(String segment); Endpoint addPath(long path); Endpoint addQuery(String name, String value); Endpoint addQuery(String name, long value); Endpoint addQuery(String name, List<?> values); String build();  }### Answer:
@Test public void noQueryString() throws Exception { assertThat(new Endpoint("http: }