ClientRuntime { public static ClientRuntime getRuntime() { return RuntimeInstance.INSTANCE; } private  ClientRuntime(); static ClientRuntime getRuntime();  }
@Test public void setClientUserAgent() { String clientUserAgent = "foobar"; ClientRuntime.setClientUserAgent(clientUserAgent); String userAgent = ClientRuntime.getRuntime().getUserAgent(); assertTrue(userAgent.contains(clientUserAgent)); }