async def METHOD_NAME():
    class Service(LoopService):
        state = []
        loop_seconds = 0
        async def _on_start(self):
            self.state.append("_on_start")
            await super()._on_start()
        async def run_once(self):
            pass
        async def _on_stop(self):
            self.state.append("_on_stop")
            await super()._on_stop()
    service = Service()
    await service.start(loops=3)
    assert service.state == ["_on_start", "_on_stop"]