BasicApiConnection extends ApiConnection { public static BasicApiConnection getWikidataApiConnection() { return new BasicApiConnection(ApiConnection.URL_WIKIDATA_API); } BasicApiConnection(String apiBaseUrl); @JsonCreator protected  BasicApiConnection(
			@JsonProperty("baseUrl") String apiBaseUrl,
			@JsonProperty("cookies") List<HttpCookieWrapper> cookies,
			@JsonProperty("username") String username,
			@JsonProperty("loggedIn") boolean loggedIn,
			@JsonProperty("tokens") Map<String, String> tokens,
			@JsonProperty("connectTimeout") int connectTimeout,
			@JsonProperty("readTimeout") int readTimeout); static BasicApiConnection getTestWikidataApiConnection(); static BasicApiConnection getWikidataApiConnection(); static BasicApiConnection getWikimediaCommonsApiConnection(); void login(String username, String password); @JsonProperty("cookies") List<HttpCookie> getCookies(); void clearCookies(); void logout();  }
@Test public void testGetWikidataApiConnection() { ApiConnection connection = BasicApiConnection.getWikidataApiConnection(); assertEquals("https: connection.apiBaseUrl); }
@Test public void testGetTestWikidataApiConnection() { ApiConnection connection = BasicApiConnection.getTestWikidataApiConnection(); assertEquals("https: connection.apiBaseUrl); }