AdviceConfig { public List<String> classNames() { return getTraceConfig().classNames; } AdviceConfig(ClassLoader classLoader, String serviceName); String getServiceName(); void addTrace(String className, List<String> methodNames); void addTrace(String className); List<String> classNames(); ElementMatcher<? super MethodDescription> methods(); ElementMatcher<? super TypeDescription> types(); @Override String toString();  }
@Test public void testConfig() throws Exception { ClassLoader classLoader = ClassLoader.getSystemClassLoader(); Config config = LoggingInstrumentationAdvice.generateConfig(classLoader, false); AdviceConfig adviceConfig = LoggingInstrumentationAdvice.generateAdviceConfig(classLoader, config, false); assertThat(adviceConfig.classNames()) .contains("com.tersesystems.logback.bytebuddy.ClassCalledByAgent"); }