def METHOD_NAME(self) -> None:
    """Test __setattr__."""
    obj = SampleConfigComponentDefinition.parse_obj({})
    assert not obj._data.get("key")
    obj.key = "val"  # pylint: disable=attribute-defined-outside-init
    assert obj._data["key"] == "val"
    assert obj.key == "val"