'Test protected property is not defined with the root image.'

@mock.patch.object(volume_api.API, 'get_volume_image_metadata')
@mock.patch.object(glance.GlanceImageService, 'create')
@mock.patch.object(volume_rpcapi.VolumeAPI, 'copy_volume_to_image')
def test_copy_volume_to_image_without_protected_prop(self, mock_volume_to_image, mock_create, mock_get_image_metadata):

    (volume, expected) = self._create_volume_with_type()
    mock_get_image_metadata.return_value = {}
    mock_create.side_effect = self.fake_image_service_create
    req = fakes.HTTPRequest.blank(('/v2/fakeproject/volumes/%s/action' % volume.id), use_admin_context=self.context.is_admin)
    body = self._get_os_volume_upload_image()
    res_dict = self.controller._volume_upload_image(req, volume.id, body)
    self.assertDictEqual(expected, res_dict)
    vol_db = objects.Volume.get_by_id(self.context, volume.id)
    self.assertEqual('uploading', vol_db.status)
    self.assertEqual('available', vol_db.previous_status)
