def METHOD_NAME(self):
    data = np.random.random((100, 150))
    s = Diffraction1D(data)
    scale0, scale1, metadata_string = 0.5, 1.5, "test"
    s.axes_manager[0].scale = scale0
    s.axes_manager[1].scale = scale1
    s.metadata.Test = metadata_string
    s_lazy = s.as_lazy()
    assert isinstance(s_lazy, LazyDiffraction1D)
    assert hasattr(s_lazy.data, "compute")
    assert s_lazy.axes_manager[0].scale == scale0
    assert s_lazy.axes_manager[1].scale == scale1
    assert s_lazy.metadata.Test == metadata_string
    assert data.shape == s_lazy.data.shape