LogbookServerFilter implements ContainerRequestFilter, ContainerResponseFilter, WriterInterceptor { @Override public void filter(final ContainerRequestContext context) throws IOException { final RemoteRequest request = new RemoteRequest(context); final RequestWritingStage write = logbook.process(request); request.expose(); final ResponseProcessingStage process = write.write(); context.setProperty("process-response", process); }  @Override void filter(final ContainerRequestContext context); @Override void filter(final ContainerRequestContext request, final ContainerResponseContext context); @Override void aroundWriteTo(final WriterInterceptorContext context);  }
@Test void filterShouldDoNothingIfCorrelatorIsNotPresent() throws IOException { unit.filter(request, response); verifyNoInteractions(logbook); }