public boolean isMulticast() {
        return isIp4() ?
                Ip4Prefix.IPV4_MULTICAST_PREFIX.contains(this.getIp4Address()) :
                Ip6Prefix.IPV6_MULTICAST_PREFIX.contains(this.getIp6Address());
    }
@Test
    public void testIsMulticast() {
        IpAddress v4Unicast = IpAddress.valueOf("10.0.0.1");
        IpAddress v4Multicast = IpAddress.valueOf("224.0.0.1");
        IpAddress v6Unicast = IpAddress.valueOf("1000::1");
        IpAddress v6Multicast = IpAddress.valueOf("ff02::1");
        assertFalse(v4Unicast.isMulticast());
        assertTrue(v4Multicast.isMulticast());
        assertFalse(v6Unicast.isMulticast());
        assertTrue(v6Multicast.isMulticast());
    }