@Test
    public void testIsAddressInAnyOfIpv4SplitAddressMatch()
    {
        // Setup test fixture.
        final Ipv4 needle = Ipv4.of("198.51.100.2");
        final Set<Ipv4> addresses = Set.of(Ipv4.of("198.51.100.1"),Ipv4.of("198.51.100.2"));
        final Set<Ipv4Range> ranges = Set.of(Ipv4Range.from("198.51.100.3").to("198.51.100.4"), Ipv4Range.from("198.51.100.5").to("198.51.100.6"));

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

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