### Question:
StreamSourceEntityProvider implements EntityProvider<StreamSource> { @Override public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return type == StreamSource.class; }  @Override boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override StreamSource readFrom(Class<StreamSource> type,
                                 Type genericType,
                                 Annotation[] annotations,
                                 MediaType mediaType,
                                 MultivaluedMap<String, String> httpHeaders,
                                 InputStream entityStream); @Override long getSize(StreamSource streamSource, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType); @Override void writeTo(StreamSource streamSource,
                        Class<?> type,
                        Type genericType,
                        Annotation[] annotations,
                        MediaType mediaType,
                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream);  }### Answer:
@Test public void isReadableForStreamSource() throws Exception { assertTrue(streamSourceEntityProvider.isReadable(StreamSource.class, null, null, APPLICATION_XML_TYPE)); }
@Test public void isNotReadableForTypeOtherThanStreamSource() throws Exception { assertFalse(streamSourceEntityProvider.isReadable(DOMSource.class, null, null, APPLICATION_XML_TYPE)); }