async def METHOD_NAME(self):
    """Test unregister after register."""
    xknx = XKNX()
    async def callback() -> None:
        """Do nothing."""
    task = xknx.task_registry.register(
        name="test",
        async_func=callback,
    )
    assert len(xknx.task_registry.tasks) == 1
    task.start()
    xknx.task_registry.unregister(task.name)
    assert len(xknx.task_registry.tasks) == 0
    assert task.done()