WireframeLines extends WireframeShape { @Override public ReadonlyVector3 getOriginReadonly() { if (isRelativeToOrigin()) { return super.getOriginReadonly(); } Iterator<ReadonlyVector3> it = getPoints().iterator(); if (it.hasNext()) { return getPoints().iterator().next(); } else { return null; } } WireframeLines(Vector3 origin, Iterable<ReadonlyVector3> relativePoints);  WireframeLines(Iterable<ReadonlyVector3> absolutePoints); Iterable<ReadonlyVector3> getPoints(); WireframeLines setPoints(Iterable<ReadonlyVector3> points); int getRenderCap(); WireframeLines setRenderCap(int renderCap); @Override ReadonlyVector3 getOriginReadonly();  }
@Test public void testGetOrigin() { ArrayList<ReadonlyVector3> arr = new ArrayList<ReadonlyVector3>(); WireframeLines shape = new WireframeLines(arr); assertNull(shape.getOriginReadonly()); arr.add(new Vector3(4.0, 5.5, -3.0)); assertEquals("(4.0,5.5,-3.0)", shape.getOriginReadonly().toString()); arr.add(new Vector3(1.0, 2.0, 3.0)); arr.add(new Vector3(7.0, -9.0, 213.5)); assertEquals("(4.0,5.5,-3.0)", shape.getOriginReadonly().toString()); }