### Question:
LoggingInterceptor implements WriterInterceptor { static boolean isReadable(MediaType mediaType) { if (mediaType != null) { for (MediaType readableMediaType : READABLE_APP_MEDIA_TYPES) { if (readableMediaType.isCompatible(mediaType)) { return true; } } } return false; } LoggingInterceptor(final Logger logger, final Level level, final Verbosity verbosity, final int maxEntitySize); @Override void aroundWriteTo(final WriterInterceptorContext writerInterceptorContext);  }### Answer:
@Test public void testReadableTypeApplicationSubVndApiJson() { assertTrue(LoggingInterceptor.isReadable(new MediaType("application", "vnd.api+json"))); }
@Test public void testReadableTypeTestSubWild() { assertTrue(LoggingInterceptor.isReadable(new MediaType("text", "*"))); }
@Test public void testReadableTypeTestSubSomething() { assertTrue(LoggingInterceptor.isReadable(new MediaType("text", "something"))); }
@Test public void testReadableTypeAppSubJson() { assertTrue(LoggingInterceptor.isReadable(new MediaType("application", "json"))); }
@Test public void testReadableTypeAppSubBinary() { assertFalse(LoggingInterceptor.isReadable(new MediaType("application", "octet-stream"))); }
@Test public void testReadableTypeAppSubUnknown() { assertFalse(LoggingInterceptor.isReadable(new MediaType("application", "unknown"))); }
@Test public void testReadableTypeUnknownSubUnknown() { assertFalse(LoggingInterceptor.isReadable(new MediaType("unknown", "unknown"))); }