def METHOD_NAME(self):
    self._parameter_type_registry.define_parameter_type(
        ParameterType(
            "css-color",
            r"red|blue|yellow",
            CssColor,
            lambda s: CssColor(s),
            True,
            False,
        )
    )
    css_color = CucumberExpression(
        "I have a {css-color} ball", self._parameter_type_registry
    )
    css_color_value = css_color.match("I have a blue ball")[0].value
    assert css_color_value == CssColor("blue")
    color = CucumberExpression(
        "I have a {color} ball", self._parameter_type_registry
    )
    color_value = color.match("I have a blue ball")[0].value
    assert color_value == Color("blue")