def METHOD_NAME(
    self, unknown_type_sample_path, unknown_type_template_path, generic_converter
):
    """Test getting state dict."""
    generic_converter.parse(unknown_type_sample_path)
    assert generic_converter.get_state_dict() == {
        "expression_prefix": "o~",
        "has_leading": {"/lala//iela": "/", "/lala/iela": "/", "lala/la": "/"},
        "regex": "([\\/]?[\\w|\\/|-]+)~([\\+]?.*\\)|\\-|\\>[A-Za-z_]\\w*)",
        "template": open(unknown_type_template_path).read(),
    }