HttpFiltersInterceptor implements InstanceMethodsAroundInterceptor, InstanceConstructorInterceptor { @Override @SuppressWarnings("unchecked") public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable { Object object = objInst.getSkyWalkingDynamicField(); Injector injector = (Injector) object; TracingFilter filter = injector.instanceOf(TracingFilter.class); Seq seq = (Seq) ret; List<Object> filters = new ArrayList<>(seq.size() + 1); filters.add(filter); filters.addAll(scala.collection.JavaConverters.asJavaCollection(seq)); return scala.collection.JavaConverters.asScalaBuffer(filters).toList(); }  @Override void beforeMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,
        MethodInterceptResult result); @Override @SuppressWarnings("unchecked") Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes,
        Object ret); @Override void handleMethodException(EnhancedInstance objInst, Method method, Object[] allArguments,
        Class<?>[] argumentsTypes, Throwable t); @Override void onConstruct(EnhancedInstance objInst, Object[] allArguments);  }
@Test public void testReturningTracingFilter() throws Throwable { Seq ret = Seq$.MODULE$.empty(); enhancedInstance.setSkyWalkingDynamicField(injector); Object result = interceptor.afterMethod(enhancedInstance, null, null, null, ret); Assert.assertTrue(Objects.nonNull(result)); Seq filters = (Seq) result; Assert.assertTrue(filters.head() instanceof TracingFilter); }