@Test
    public void testIsAddressInAnyOfIpv4NonSplitRangeMatch()
    {
        // Setup test fixture.
        final Ipv4 needle = Ipv4.of("198.51.100.5");
        final Set<String> addressesAndRanges = Set.of("198.51.100.1", "198.51.100.2", "198.51.100.3-198.51.100.4", "198.51.100.5-198.51.100.6");

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

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