You would test `HostnameFromGetentOutput`, not `ResolveIP`.

As for `getent` changing its output format: I think it is very unlikely since it is part of glibc. But sure we can guard against it, by testing `ResolveIP` *without* mocking `getent`.