def METHOD_NAME() -> None:
    @get(path="/{param:int}/foo/{param:int}")
    def test_method() -> None:
        raise AssertionError("should not be called")
    with pytest.raises(ImproperlyConfiguredException):
        Litestar(route_handlers=[test_method])