def METHOD_NAME(body: FieldInfo, dependency: Callable) -> None:
    @post("/", dependencies={"first": Provide(dependency, sync_to_thread=False)})
    def handler(first: Dict[str, Any], data: Any = body) -> None:
        assert first
        assert data
    with pytest.raises(ImproperlyConfiguredException):
        Litestar(route_handlers=[handler])