WireframeCuboid extends WireframeShape { public WireframeCuboid setUpperCorner(Vector3 upperCorner) { if (upperCorner == null) { throw new IllegalArgumentException("upper corner cannot be null"); } this.upperCorner = upperCorner; normalize(); return this; } WireframeCuboid(Vector3 lowerCorner, Vector3 upperCorner);  WireframeCuboid(double x0, double y0, double z0, double x1, double y1, double z1); Vector3 getLowerCorner(); WireframeCuboid setLowerCorner(Vector3 lowerCorner); Vector3 getUpperCorner(); WireframeCuboid setUpperCorner(Vector3 upperCorner); void normalize(); @Override ReadonlyVector3 getOriginReadonly();  }
@Test(expected=IllegalArgumentException.class) public void testSetInvalidNullUpper() { new WireframeCuboid(1.0,2.0,3.0, 4.0,5.0,6.0).setUpperCorner(null); }