TDAT: public void testInetAddress() throws UnknownHostException { // Test name alone (can be IPv4 or IPv6 depending on the OS plaform // configuration). address = InetAddress.getByName("localhost"); assertEquals(true, address instanceof InetAddress); assertEquals(true, address.toString().contains("localhost")); } COM: preliminary test method to validate the inet address behaviour v4 and v6