it 'calls the to_media_type with the correct media type' do