@Test
    public void testIsValidIpv6RangeDashRange() 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.isValidIpv6Range(input);

        // Verify results.
        assertTrue(result);
    }
Asserts that {@link IpUtils#isValidIpv6Range(String)} correctly identifies an IPv6 dash-range value as a valid IPv6 address range.
xmppserver/src/test/java/org/jivesoftware/util/IpUtilsTest.java