@Test
    public void testIsAddressInAnyOfIpv6SplitRangeMatch()
    {
        // Setup test fixture.
        final Ipv6 needle = Ipv6.of("91ed:ffff:8948:c0a3:1:dc9e:bed9:5");
        final Set<Ipv6> addresses = Set.of(Ipv6.of("91ed:ffff:8948:c0a3:1:dc9e:bed9:1"),Ipv6.of("91ed:ffff:8948:c0a3:1:dc9e:bed9:2"));
        final Set<Ipv6Range> ranges = Set.of(Ipv6Range.from("91ed:ffff:8948:c0a3:1:dc9e:bed9:3").to("91ed:ffff:8948:c0a3:1:dc9e:bed9:4"), Ipv6Range.from("91ed:ffff:8948:c0a3:1:dc9e:bed9:5").to("91ed:ffff:8948:c0a3:1:dc9e:bed9:6"));

        // Execute system under test.
        final boolean result = IpUtils.isAddressInAnyOf(needle, addresses, ranges);

        // Verify results.
        assertTrue(result);
    }
Asserts that {@link IpUtils#isAddressInAnyOf(Ipv6, Set, Set)} correctly find the provided address in non-empty
sets of addresses and ranges, when one of the ranges contains the provided address.
xmppserver/src/test/java/org/jivesoftware/util/IpUtilsTest.java