### Question:
CSVMessageBodyWriter implements MessageBodyWriter<Object> { @Override public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) { return MediaType.TEXT_PLAIN_TYPE.equals(mediaType) || TEXT_CSV_TYPE.equals(mediaType); }  @Override boolean isWriteable(Class<?> type,
                             Type genericType,
                             Annotation[] annotations,
                             MediaType mediaType); @Override long getSize(Object o,
                      Class<?> type,
                      Type genericType,
                      Annotation[] annotations,
                      MediaType mediaType); @Override void writeTo(Object o,
                      Class<?> type,
                      Type genericType,
                      Annotation[] annotations,
                      MediaType mediaType,
                      MultivaluedMap<String,Object> httpHeaders,
                      OutputStream entityStream);  }### Answer:
@Test public void testIsWriteable() { CSVMessageBodyWriter writer = new CSVMessageBodyWriter(); assertTrue(writer.isWriteable(null, null, null, MediaType.TEXT_PLAIN_TYPE)); assertTrue(writer.isWriteable(null, null, null, TEXT_CSV_TYPE)); assertFalse(writer.isWriteable(null, null, null, MediaType.TEXT_HTML_TYPE)); }