async def METHOD_NAME(self) -> None:
    async for manager in self._managers():
        companion_first = CompanionInfo(
            udid="a",
            address=TCPAddress(host="ahost", port=123),
            is_local=False,
            pid=None,
        )
        replaced = await manager.add_companion(companion_first)
        self.assertIsNone(replaced)
        companions = await manager.get_companions()
        self.assertEqual(companions, [companion_first])
        companion_second = CompanionInfo(
            udid="a",
            address=DomainSocketAddress(path="/some/path"),
            is_local=False,
            pid=123,
        )
        replaced = await manager.add_companion(companion_second)
        self.assertEqual(replaced, companion_first)
        companions = await manager.get_companions()
        self.assertEqual(companions, [companion_second])