HttpConnector { public static String defaultUserAgent() { return USER_AGENT; }  static String defaultUserAgent(); HttpURLConnection openConnection(URL url, NetworkSettings settings);  }
@Test public void testUserAgent() { String userAgent = HttpConnector.defaultUserAgent(); assertThat(userAgent.contains("acme4j/"), is(true)); assertThat(userAgent.contains("Java/"), is(true)); }