def test_image_export_embed_glb(exporters, state, bpy_image_default, gltf_image_default):
    state['settings']['images_data_storage'] = 'EMBED'
    state['settings']['gltf_export_binary'] = True

    gltf_image_default['mimeType'] = 'image/png'
    gltf_image_default['bufferView'] = 'bufferView_buffer_Image_0'
    output = exporters.ImageExporter.export(state, bpy_image_default)

    for ref in state['references']:
        ref.source[ref.prop] = ref.blender_name

    assert output == gltf_image_default