@Test
    @Deprecated(since = "5.0.0", forRemoval = true) // Remove when the system under test gets removed.
    public void testIPv6DashRangeFirstMatch() throws Exception
    {
        // Setup test fixture.
        final byte[] address = InetAddress.getByName("3fff::").getAddress();
        final Set<String> ranges = Set.of("3fff::-3fff:3ff:ffff:ffff:ffff:ffff:ffff:ffff");

        // Execute system under test.
        final boolean result = LocalClientSession.isAddressInRange(address, ranges);

        // Verify results.
        assertTrue(result);
    }
Unit tests that verify the functionality of {@link LocalClientSession}

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/openfire/session/LocalClientSessionTest.java