JRTConfigRequestFactory { public static <T extends ConfigInstance> JRTClientConfigRequest createFromSub(JRTConfigSubscription<T> sub) { return JRTClientConfigRequestV3.createFromSub(sub, Trace.createNew(), compressionType, getVespaVersion()); }  static JRTClientConfigRequest createFromSub(JRTConfigSubscription<T> sub); static JRTClientConfigRequest createFromRaw(RawConfig config, long serverTimeout); static CompressionType getCompressionType();  }
@Test public void testCreateFromSub() { ConfigSubscriber subscriber = new ConfigSubscriber(); Class<FunctionTestConfig> clazz = FunctionTestConfig.class; final String configId = "foo"; JRTConfigSubscription<FunctionTestConfig> sub = new JRTConfigSubscription<>( new ConfigKey<>(clazz, configId), subscriber, new ConfigSet(), new TimingValues()); JRTClientConfigRequest request = JRTConfigRequestFactory.createFromSub(sub); assertThat(request.getVespaVersion().get(), is(defaultVespaVersion)); }