### Question:
ConnectionBuilder { public String getUrl(String extension) { return addApiCallQueryParameters(settings.getServerBaseUrl() + "/" + extension); } ConnectionBuilder(Settings settings); String getUrl(String extension); String addApiCallQueryParameters(String url); RequestBuilder createConnection(); static final int API_VERSION; }### Answer:
@Test public void appendedUrlContainsApiVersion() { String url = cb.getUrl("test"); assertTrue(url.contains("api_version=" + ConnectionBuilder.API_VERSION)); }
@Test public void appendedUrlContainsClient() { String url = cb.getUrl("test"); assertTrue(url.contains("client=eclipse_plugin")); }
@Test public void appendedUrlContainsClientVersion() { String url = cb.getUrl("test"); assertTrue(url.contains("client_version=0.0.1")); }
@Test public void appendedUrlContainsCorrectRoot() { String url = cb.getUrl("test"); assertTrue(url.contains(Settings.getDefaultSettings().getServerBaseUrl() + "/test")); }