def METHOD_NAME(self):
    self.widget.bin_shape = (2, 4)
    self.widget._init_bins()
    self.send_signal(self.widget.Inputs.data, self.mosaic)
    m = self.get_output(self.widget.Outputs.bindata)
    np.testing.assert_equal(len(m.X), len(self.mosaic.X) / (2 * 4))
    x_coords = self.mosaic[:, "map_x"].metas[:, 0]
    x_coords_binned = np.array([x_coords[0:2].mean(), x_coords[2:4].mean()])
    np.testing.assert_equal(m[:, "map_x"].metas[::2, 0], x_coords_binned)
    y_coords = self.mosaic[:, "map_y"].metas[:, 0]
    y_coords_binned = np.array([y_coords[0:16].mean(), y_coords[16:32].mean()])
    np.testing.assert_equal(m[:, "map_y"].metas[0:2, 0], y_coords_binned)