def METHOD_NAME():
    """Test that a material can be attached to a measurement, and the connection survives serde."""
    cake = MaterialRun('Final Cake')
    mass = MeasurementRun('Weigh cake', material=cake)
    mass_data = mass.dump()
    mass_copy = MeasurementRun.build(mass_data)
    assert mass_copy == mass