@Test
    public void testIsAddressInAnyOfIpv6NonSplitRangeMatch()
    {
        // Setup test fixture.
        final Ipv6 needle = Ipv6.of("91ed:ffff:8948:c0a3:1:dc9e:bed9:5");
        final Set<String> addressesAndRanges = Set.of("91ed:ffff:8948:c0a3:1:dc9e:bed9:1", "91ed:ffff:8948:c0a3:1:dc9e:bed9:2", "91ed:ffff:8948:c0a3:1:dc9e:bed9:3-91ed:ffff:8948:c0a3:1:dc9e:bed9:4", "91ed:ffff:8948:c0a3:1:dc9e:bed9:5-91ed:ffff:8948:c0a3:1:dc9e:bed9:6");

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

        // Verify results.
        assertTrue(result);
    }
Asserts that {@link IpUtils#isAddressInAnyOf(Ipv6, 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