def METHOD_NAME(self, url_path, expected_frontend, expected_backend, context):
    context.path = url_path
    self.router.endpoint_routing(context)
    assert context.target_backend == expected_backend
    assert context.target_frontend == expected_frontend
    backend = self.router.backend_routing(context)
    assert backend == self.router.backends[expected_backend]["instance"]
    frontend = self.router.frontend_routing(context)
    assert frontend == self.router.frontends[expected_frontend]["instance"]