def METHOD_NAME():
    mm = metamodel_from_str(grammar)
    mm.model_param_defs.add(
        "parameter1", "an example param (1)"
    )
    mm.model_param_defs.add(
        "parameter2", "an example param (2)"
    )
    m = mm.model_from_str(text)
    assert m.name == 'test1'
    assert hasattr(m, '_tx_model_params')
    assert len(m._tx_model_params) == 0
    assert m._tx_model_params.all_used