def METHOD_NAME(
    self,
    app: Flask,
    client: FlaskClient,
    with_db_and_bpmn_file_cleanup: None,
) -> None:
    message_name = "message_model_one"
    process_model = self.setup_message_tests(client)
    process_instance = self.create_process_instance_from_process_model(process_model, "waiting")
    with pytest.raises(ValueError) as exception:
        MessageInstanceModel(
            process_instance_id=process_instance.id,
            user_id=process_instance.process_initiator_id,
            message_type="BAD_MESSAGE_TYPE",
            name=message_name,
        )
    assert str(exception.value) == "MessageInstanceModel: invalid message_type: BAD_MESSAGE_TYPE"
    queued_message = MessageInstanceModel(
        process_instance_id=process_instance.id,
        user_id=process_instance.process_initiator_id,
        message_type="send",
        name=message_name,
    )
    db.session.add(queued_message)
    db.session.commit()
    with pytest.raises(ValueError) as exception:
        queued_message.message_type = "BAD_MESSAGE_TYPE"
    assert str(exception.value) == "MessageInstanceModel: invalid message_type: BAD_MESSAGE_TYPE"