def METHOD_NAME(caplog):
    caplog.set_level(logging.DEBUG)
    manager = mock.create_autospec(
        streaming_pull_manager.StreamingPullManager, instance=True
    )
    manager.is_active = False
    manager.heartbeat.return_value = True  # because of active rpc
    heartbeater_ = heartbeater.Heartbeater(manager)
    make_sleep_mark_event_as_done(heartbeater_)
    heartbeater_.heartbeat()
    assert "Sent heartbeat" in caplog.text
    assert "exiting" in caplog.text