TYRUS-367: make InetAddress fields final and improve test