XMemcachedConstructorWithHostPortArgInterceptor implements InstanceConstructorInterceptor { @Override public void onConstruct(EnhancedInstance objInst, Object[] allArguments) { Object host = allArguments[0]; Object port = allArguments[1]; objInst.setSkyWalkingDynamicField(host + ":" + port); }  @Override void onConstruct(EnhancedInstance objInst, Object[] allArguments);  }
@Test public void onConstructWithHostPort() { interceptor.onConstruct(enhancedInstance, new Object[] { "127.0.0.1", 11211 }); verify(enhancedInstance).setSkyWalkingDynamicField("127.0.0.1:11211"); }