def METHOD_NAME(make_labels_controls):
    """Test that changing the colormap on a layer will update color swatch in the combo box"""
    layer, qtctrl = make_labels_controls(color=_COLOR)
    color_box = qtctrl.colorBox
    layer.selected_label = 1
    # For a paint event, which does not occur in a headless qtbot
    color_box.paintEvent(None)
    np.testing.assert_equal(
        color_box.color,
        np.round(np.asarray(layer._selected_color) * 255),
    )
    layer.colormap = colormap_utils.label_colormap(num_colors=5)
    # For a paint event, which does not occur in a headless qtbot
    color_box.paintEvent(None)
    np.testing.assert_equal(
        color_box.color,
        np.round(np.asarray(layer._selected_color) * 255),
    )