@Test
    public void testIsValidIpv4WrongFamilyDashRange() throws Exception
    {
        // Setup test fixture.
        final String input = "2001:db8::-2001:db8:ffff:ffff:ffff:ffff:ffff:ffff";

        // Execute system under test.
        final boolean result = IpUtils.isValidIpv4(input);

        // Verify results.
        assertFalse(result);
    }
Asserts that {@link IpUtils#isValidIpv4(String)} does not identify a valid IPv6 address range (in the dash notation) as a valid IPv4 address.
xmppserver/src/test/java/org/jivesoftware/util/IpUtilsTest.java