PreExecutionInterceptorContext extends AbstractInterceptorContext<PreExecutionInterceptorContext> { public PreExecutionInterceptorContext shouldNotCollectCallTree(String reason) { if (!mustCollectCallTree) { logger.debug("Should not collect call tree because {}", reason); collectCallTree = false; } return this; } PreExecutionInterceptorContext(SpanContextInformation spanContext); PreExecutionInterceptorContext mustCollectCallTree(String reason); PreExecutionInterceptorContext shouldNotCollectCallTree(String reason); boolean isCollectCallTree();  }
@Test public void shouldNotCollectCallTree() throws Exception { assertTrue(interceptorContext.isCollectCallTree()); interceptorContext.shouldNotCollectCallTree("reasons"); assertFalse(interceptorContext.isCollectCallTree()); }