public void testUnknownAddress() throws UnknownHostException { IpAddress addr=new IpAddress("idontknow.com", 55); assertEquals(addr.getIpAddress(), InetAddress.getLocalHost());
public void testUnknownAddress() { try { IpAddress tmp=new IpAddress("idontknow.com", 55); fail("should throw an UnknownHostException"); } catch(UnknownHostException e1) { }
    public void testUnknownAddress() throws UnknownHostException {        IpAddress addr=new IpAddress("idontknow.com", 55);        assertEquals(addr.getIpAddress(), InetAddress.getLocalHost());    }