def METHOD_NAME(self, file_format, tmp_path):
    name = tmp_path / f"a.{file_format}"
    kwargs = {}
    if file_format == "h5":
        kwargs["path"] = "trial"
        kwargs["serialize_meta"] = True
    self.t.write(name, **kwargs)
    t2 = QTable.read(name)
    assert isinstance(t2["ma"], self.ma.__class__)
    assert np.all(t2["ma"] == self.ma)
    assert np.all(t2["ma"].mask == self.mask_a)
    if file_format == "fits":
        # Imperfect roundtrip through FITS native format description.
        assert self.t["ma"].info.format in t2["ma"].info.format
    else:
        assert t2["ma"].info.format == self.t["ma"].info.format