// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final Ipv4 FIRST_IPV4_ADDRESS = Ipv4.of(MINIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final Ipv4 LAST_IPV4_ADDRESS = Ipv4.of(MAXIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final long MAXIMUM_VALUE = (1L << NUMBER_OF_BITS) - 1;


import static com.github.jgonian.ipmath.Ipv4.LAST_IPV4_ADDRESS;
import static com.github.jgonian.ipmath.Ipv4.MAXIMUM_VALUE;
import static junit.framework.Assert.assertFalse;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.github.jgonian.ipmath.Ipv4.FIRST_IPV4_ADDRESS;
    }

    @Test
    public void testToStringInRangeNotation() {
        assertEquals("0.0.0.0-255.255.255.255", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInRangeNotation());
    }

    @Test
    public void testToStringInRangeNotationWithSpaces() {
        assertEquals("0.0.0.0 - 255.255.255.255", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInRangeNotationWithSpaces());
    }

    @Test
    public void testToStringSpecialFoundInvalidCase() {
        assertFalse("94.126.33.0/23".equals(Ipv4Range.from(1585324288L).to(1585324799L).toString()));
    }

    @Test
    public void testToStringInCidrNotation() {
        assertEquals("0.0.0.0/0", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInCidrNotation());
    }

    @Test
    public void testToStringInDecimalNotation() {
        assertEquals("0-4294967295", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInDecimalNotation());
    }

    @Test
    public void testSize() {
        assertEquals(new Long(1), ip1.asRange().size());
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final Ipv4 FIRST_IPV4_ADDRESS = Ipv4.of(MINIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final Ipv4 LAST_IPV4_ADDRESS = Ipv4.of(MAXIMUM_VALUE);
// 
// Path: commons-ip-math/src/main/java/com/github/jgonian/ipmath/Ipv4.java
// public static final long MAXIMUM_VALUE = (1L << NUMBER_OF_BITS) - 1;


// Path: commons-ip-math/src/test/java/com/github/jgonian/ipmath/Ipv4RangeTest.java
import static com.github.jgonian.ipmath.Ipv4.LAST_IPV4_ADDRESS;
import static com.github.jgonian.ipmath.Ipv4.MAXIMUM_VALUE;
import static junit.framework.Assert.assertFalse;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.github.jgonian.ipmath.Ipv4.FIRST_IPV4_ADDRESS;

    }

    @Test
    public void testToStringInRangeNotation() {
        assertEquals("0.0.0.0-255.255.255.255", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInRangeNotation());
    }

    @Test
    public void testToStringInRangeNotationWithSpaces() {
        assertEquals("0.0.0.0 - 255.255.255.255", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInRangeNotationWithSpaces());
    }

    @Test
    public void testToStringSpecialFoundInvalidCase() {
        assertFalse("94.126.33.0/23".equals(Ipv4Range.from(1585324288L).to(1585324799L).toString()));
    }

    @Test
    public void testToStringInCidrNotation() {
        assertEquals("0.0.0.0/0", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInCidrNotation());
    }

    @Test
    public void testToStringInDecimalNotation() {
        assertEquals("0-4294967295", new Ipv4Range(FIRST_IPV4_ADDRESS, LAST_IPV4_ADDRESS).toStringInDecimalNotation());
    }

    @Test
    public void testSize() {
        assertEquals(new Long(1), ip1.asRange().size());
        assertEquals(new Long(MAXIMUM_VALUE + 1), Ipv4Range.from(FIRST_IPV4_ADDRESS).to(LAST_IPV4_ADDRESS).size());