### Question:
StructuredJsonExamplesMessageBodyReader implements MessageBodyReader<ExamplesIterable> { @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { LOGGER.debug("Called with media type: {} and type: {}", mediaType.toString(), type); boolean willReturn = mediaType.toString().equals(ExampleMediaTypes.STRUCTURED_JSON_0_1_0) && type == ExamplesIterable.class; LOGGER.debug("Returning: {}", willReturn); return willReturn; }  @Override boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override ExamplesIterable readFrom(Class<ExamplesIterable> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream);  }### Answer:
@Test public void isReadableTest() { Assert.assertTrue(toTest.isReadable(ExamplesIterable.class, null, null, new MediaType() { @Override public String toString() { return ExampleMediaTypes.STRUCTURED_JSON_0_1_0; } })); Assert.assertFalse(toTest.isReadable(ExamplesIterable.class, null, null, MediaType.TEXT_PLAIN_TYPE)); }