@Test
    public void testIsValidIpAddressOrRangeIpv4CidrRange() throws Exception
    {
        // Setup test fixture.
        final String input = "198.51.100.0/24";

        // Execute system under test.
        final boolean result = IpUtils.isValidIpAddressOrRange(input);

        // Verify results.
        assertTrue(result);
    }
Asserts that {@link IpUtils#isValidIpAddressOrRange(String)} correctly identifies an IPv4 CIDR range value as a valid IP address or IP address range.
xmppserver/src/test/java/org/jivesoftware/util/IpUtilsTest.java