### Question:
ResourceBundleMessageBodyWriter implements MessageBodyWriter<ResourceBundle> { @Override public boolean isWriteable( Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType ) { return ResourceBundle.class.isAssignableFrom( type ) && ( MediaType.APPLICATION_JSON_TYPE.equals( mediaType ) || MediaType.APPLICATION_XML_TYPE.equals( mediaType ) ); }  @Override boolean isWriteable( Class<?> type, Type genericType, Annotation[] annotations,
                                        MediaType mediaType ); @Override long getSize( ResourceBundle resourceBundle, Class<?> type, Type genericType,
                                 Annotation[] annotations, MediaType mediaType ); @Override void writeTo( ResourceBundle resourceBundle, Class<?> type, Type genericType,
                                 Annotation[] annotations, MediaType mediaType,
                                 MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream );  }### Answer:
@Test public void testIsWritable() { ResourceBundleMessageBodyWriter resourceBundleMessageBodyWriter = new ResourceBundleMessageBodyWriter(); assertTrue( resourceBundleMessageBodyWriter .isWriteable( OSGIResourceBundle.class, null, null, MediaType.APPLICATION_XML_TYPE ) ); assertTrue( resourceBundleMessageBodyWriter .isWriteable( OSGIResourceBundle.class, null, null, MediaType.APPLICATION_JSON_TYPE ) ); assertFalse( resourceBundleMessageBodyWriter.isWriteable( Object.class, null, null, MediaType.APPLICATION_XML_TYPE ) ); assertFalse( resourceBundleMessageBodyWriter.isWriteable( OSGIResourceBundle.class, null, null, MediaType.WILDCARD_TYPE ) ); }