@Test
  public void testIsFullOutOfRange() {
    Percolation p = new Percolation(10);

    try {
      p.isFull(-5, 5);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

    try {
      p.isFull(0, 5);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

    try {
      p.isFull(5, -5);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

    try {
      p.isFull(5, 0);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

    try {
      p.isFull(15, 5);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

    try {
      p.isFull(5, 15);
      fail("Line above should throw exception");
    } catch (IndexOutOfBoundsException e) {
      /* Expected */
    }

  }