AtlasDbHttpClients { public static <T> T createProxy( Optional<TrustContext> trustContext, String uri, Class<T> type, AuxiliaryRemotingParameters parameters) { return wrapWithOkHttpBugHandling(type, () -> ConjureJavaRuntimeTargetFactory.DEFAULT.createProxy( trustContext, uri, type, parameters).instance()); } private  AtlasDbHttpClients(); static T createProxy(
            Optional<TrustContext> trustContext,
            String uri,
            Class<T> type,
            AuxiliaryRemotingParameters parameters); static T createProxyWithFailover(
            MetricsManager metricsManager,
            ServerListConfig serverListConfig,
            Class<T> type,
            AuxiliaryRemotingParameters parameters); static T createLiveReloadingProxyWithFailover(
            MetricsManager metricsManager,
            Supplier<ServerListConfig> serverListConfigSupplier,
            Class<T> type,
            AuxiliaryRemotingParameters clientParameters); static T createDialogueProxy(TaggedMetricRegistry registry, Class<T> type, Channel channel); static T createUninstrumentedDialogueProxy(Class<T> type, Channel channel);  }
@Test public void userAgentIsPresentOnClientRequests() { TestResource client = AtlasDbHttpClients.createProxy( TRUST_CONTEXT, getUriForPort(availablePort1), TestResource.class, AUXILIARY_REMOTING_PARAMETERS); client.getTestNumber(); availableServer1.verify(getRequestedFor(urlMatching(GET_ENDPOINT)).withHeader( USER_AGENT_HEADER, WireMock.containing(ATLASDB_CLIENT_V2_AGENT_STRING))); }