Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/com/google/common/net/InetAddressesTest.java
package com.google.common.net;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class InetAddressesTest {

    @Test
    public void test() {
        assertTrue(InetAddresses.isInetAddress("127.0.0.1"));
        assertTrue(InetAddresses.isInetAddress("::1"));
        assertFalse(InetAddresses.isInetAddress("ibm.com"));
        assertFalse(InetAddresses.isInetAddress("127.0.0"));
    }
}
-------------------------------------------------------------------------------
Test set: com.google.common.net.InetAddressesTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.google.common.net.InetAddressesTest
test  Time elapsed: 0 s