/**
  * Failure test of <code>removeWaypoint(Point waypoint)</code> method.
  *
  * <p>waypoint is null.
  *
  * <p>Expect IllegalArgumentException.
  *
  * @throws Exception throw exception to JUnit.
  */
 public void testRemoveWaypointFailureNullWaypoint() throws Exception {
   try {
     polyline.removeWaypoint(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
   }
 }