/**
  * Failure test of <code>setWaypoint(int index, Point waypoint)</code> method.
  *
  * <p>waypoint is null.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testSetWaypointFailureNullWaypoint() throws Exception {
   polyline.addWaypoint(waypoint);
   try {
     polyline.setWaypoint(0, null);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>addWaypoint(int index, Point waypoint)</code> method.
  *
  * <p>index is greater than list size.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testAddWaypoint2FailureIndexGreaterThanSize() throws Exception {
   try {
     polyline.addWaypoint(1, waypoint);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>addWaypoint(int index, Point waypoint)</code> method.
  *
  * <p>index is negative.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testAddWaypoint2FailureNegativeIndex() throws Exception {
   try {
     polyline.addWaypoint(-1, waypoint);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>addWaypoint(Point waypoint)</code> method.
  *
  * <p>waypoint is null.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testAddWaypoint1FailureNullWaypoint() throws Exception {
   try {
     polyline.addWaypoint(null);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>indexOfWaypoint(Point waypoint)</code> method.
  *
  * <p>waypoint is null.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testIndexOfWaypointFailureNullWaypoint() throws Exception {
   try {
     polyline.containsWaypoint(null);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>removeWaypoint(int index)</code> method.
  *
  * <p>index is equal to list size.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testRemoveWaypointFailureIndexEqualToSize() throws Exception {
   try {
     polyline.removeWaypoint(0);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }
 /**
  * Failure test of <code>removeWaypoint(int index)</code> method.
  *
  * <p>index is negative.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testRemoveWaypointFailureNegativeIndex() throws Exception {
   try {
     polyline.removeWaypoint(-1);
     fail("Expect IllegalArgumentException.");
   } catch (IllegalArgumentException e) {
     // expect
   }
 }