def METHOD_NAME(self):
    # When re-scaling masked data with a finite fill value, ensure
    # the fill value and any filled values are also re-scaled.
    cube = iris.cube.Cube(np.ma.MaskedArray([1.0, 2.0, 3.0, 1.0, 2.0, 3.0],
                                            mask=[0, 0, 0, 1, 1, 1],
                                            fill_value=2000),
                          standard_name='geopotential_height', units='km')
    grib_message = mock.sentinel.GRIB_MESSAGE
    with mock.patch(GRIB_API) as grib_api:
        data_section(cube, grib_message)
    # Check the use of a mask has been turned on.
    FILL = 2000 * 1000
    self.assertBitmapOn(grib_api, FILL)
    # Check the correct data values have been set.
    self.assertValues(grib_api, [1000, 2000, 3000, FILL, FILL, FILL])