public boolean isMulticast() {
        return isIp4() ?
                IPV4_MULTICAST_PREFIX.contains(this.getIp4Prefix()) :
                IPV6_MULTICAST_PREFIX.contains(this.getIp6Prefix());
    }
@Test
    public void testIsMulticast() {
        IpPrefix v4Unicast = IpPrefix.valueOf("10.0.0.1/16");
        IpPrefix v4Multicast = IpPrefix.valueOf("224.0.0.1/4");
        IpPrefix v4Overlap = IpPrefix.valueOf("192.0.0.0/2");
        IpPrefix v6Unicast = IpPrefix.valueOf("1000::1/8");
        IpPrefix v6Multicast = IpPrefix.valueOf("ff02::1/8");
        IpPrefix v6Overlap = IpPrefix.valueOf("ff00::1/4");
        assertFalse(v4Unicast.isMulticast());
        assertTrue(v4Multicast.isMulticast());
        assertFalse(v4Overlap.isMulticast());
        assertFalse(v6Unicast.isMulticast());
        assertTrue(v6Multicast.isMulticast());
        assertFalse(v6Overlap.isMulticast());
    }