def METHOD_NAME(client_factory, client):
    client_factory.get_client = MagicMock(return_value=client)
    client.check = MagicMock(
        return_value=health_pb2.HealthCheckResponse.ServingStatus.UNKNOWN
    )
    servicer = HealthCheckServicer(client_factory=client_factory)
    servicer.add_service("test_service", "test_endpoint", True)
    assert servicer.check() == health_pb2.HealthCheckResponse.ServingStatus.UNKNOWN
    client_factory.get_client.assert_called_once_with("test_endpoint", True)
    client.check.assert_called_once()