### Question:
PrimitiveTextProvider extends AbstractConfigurableProvider implements MessageBodyReader<T>, MessageBodyWriter<T> { public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mt) { return isSupported(type, mt); }  boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mt); T readFrom(Class<T> type, Type genType, Annotation[] anns, MediaType mt,
                      MultivaluedMap<String, String> headers, InputStream is); long getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mt); boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mt); void writeTo(T obj, Class<?> type, Type genType, Annotation[] anns,
                        MediaType mt, MultivaluedMap<String, Object> headers,
                        OutputStream os);  }### Answer:
@Test public void testNumberIsReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertTrue(p.isReadable(Byte.class, null, null, MediaType.TEXT_PLAIN_TYPE)); }
@Test public void testNumberIsNotReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertFalse(p.isReadable(Byte.class, null, null, MediaType.valueOf("text/custom"))); }
@Test public void testBooleanIsReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertTrue(p.isReadable(Boolean.class, null, null, MediaType.TEXT_PLAIN_TYPE)); }
@Test public void testBooleanIsNotReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertFalse(p.isReadable(Boolean.class, null, null, MediaType.valueOf("text/custom"))); }
@Test public void testCharacterIsReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertTrue(p.isReadable(Character.class, null, null, MediaType.TEXT_PLAIN_TYPE)); }
@Test public void testCharacterIsNotReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertFalse(p.isReadable(Character.class, null, null, MediaType.valueOf("text/custom"))); }
@Test public void testStringIsReadable() { MessageBodyReader<Object> p = new PrimitiveTextProvider<>(); assertFalse(p.isReadable(String.class, null, null, MediaType.TEXT_PLAIN_TYPE) && p.isReadable(String.class, null, null, MediaType.valueOf("text/custom"))); }