WireframeLine extends WireframeShape { public WireframeLine setPointA(Vector3 a) { if (a == null) { throw new IllegalArgumentException("point A cannot be null"); } pointA = a; return this; } WireframeLine(Vector3 a, Vector3 b);  WireframeLine(double ax, double ay, double az, double bx, double by, double bz); Vector3 getPointA(); WireframeLine setPointA(Vector3 a); Vector3 getPointB(); WireframeLine setPointB(Vector3 b);  }
@Test(expected=IllegalArgumentException.class) public void testSetInvalidNullA() { new WireframeLine(1.0,2.0,3.0, 4.0,5.0,6.0).setPointA(null); }