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

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

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