HttpClient { public synchronized static String getWebViewUserAgent(String defaultUserAgent) { if (TextUtils.isEmpty(sWebViewUserAgent)) { return defaultUserAgent; } return sWebViewUserAgent; }  static AndroidHttpClient getHttpClient(); static HttpGet initializeHttpGet(@NonNull final String url); static HttpGet initializeHttpGet(@NonNull String url, @Nullable final Context context); static String urlEncode(@NonNull final String url); synchronized static String getWebViewUserAgent(String defaultUserAgent); synchronized static String getWebViewUserAgent(); synchronized static void setWebViewUserAgent(final String userAgent);  }
@Test public void getWebViewUserAgent_whenUserAgentNotSet_shouldReturnDefault() { assertThat(getWebViewUserAgent("test")).isEqualTo("test"); }