LoggingInterceptor implements WriterInterceptor { static boolean printEntity(Verbosity verbosity, MediaType mediaType) { return verbosity == Verbosity.PAYLOAD_ANY || (verbosity == Verbosity.PAYLOAD_TEXT && isReadable(mediaType)); } LoggingInterceptor(final Logger logger, final Level level, final Verbosity verbosity, final int maxEntitySize); @Override void aroundWriteTo(final WriterInterceptorContext writerInterceptorContext);  }
@Test public void testVerbosityTextPrintTextEntity() { assertTrue(LoggingInterceptor.printEntity(PAYLOAD_TEXT, TEXT_HTML_TYPE)); }
@Test public void testVerbosityTextPrintBinaryEntity() { assertFalse(LoggingInterceptor.printEntity(PAYLOAD_TEXT, APPLICATION_OCTET_STREAM_TYPE)); }
@Test public void testVerbosityAnyPrintTextEntity() { assertTrue(LoggingInterceptor.printEntity(PAYLOAD_ANY, TEXT_HTML_TYPE)); }
@Test public void testVerbosityAnyPrintBinaryEntity() { assertTrue(LoggingInterceptor.printEntity(PAYLOAD_ANY, APPLICATION_OCTET_STREAM_TYPE)); }
@Test public void testVerbosityHeadersPrintTextEntity() { assertFalse(LoggingInterceptor.printEntity(HEADERS_ONLY, TEXT_HTML_TYPE)); }
@Test public void testVerbosityHeadersPrintBinaryEntity() { assertFalse(LoggingInterceptor.printEntity(HEADERS_ONLY, APPLICATION_OCTET_STREAM_TYPE)); }