JedisConstructorWithUriArgInterceptor implements InstanceConstructorInterceptor { @Override public void onConstruct(EnhancedInstance objInst, Object[] allArguments) { URI uri = (URI) allArguments[0]; objInst.setSkyWalkingDynamicField(uri.getHost() + ":" + uri.getPort()); }  @Override void onConstruct(EnhancedInstance objInst, Object[] allArguments);  }
@Test public void onConstruct() throws Exception { interceptor.onConstruct(enhancedInstance, new Object[] {uri}); verify(enhancedInstance).setSkyWalkingDynamicField("127.0.0.1:6379"); }