Plane { @Override public String toString() { return "normal=[" + this.normal + "], distance=" + this.distance; } Plane();  Plane(double x, double y, double z, double distance);  Plane(Plane plane); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); double distanceToPoint(Vec3 point); Plane set(double x, double y, double z, double distance); Plane set(Plane plane); Plane transformByMatrix(Matrix4 matrix); double dot(Vec3 vector); boolean intersectsSegment(Vec3 endPoint1, Vec3 endPoint2); int onSameSide(Vec3 pointA, Vec3 pointB); Vec3[] clip(Vec3 pointA, Vec3 pointB);  }
@Test public void testToString() throws Exception { Vec3 n = new Vec3(3, 4, 5).normalize(); double distance = 6; Plane plane = new Plane(n.x, n.y, n.z, distance); String string = plane.toString(); assertTrue("normal x", string.contains(Double.toString(plane.normal.x))); assertTrue("normal y", string.contains(Double.toString(plane.normal.y))); assertTrue("normal z", string.contains(Double.toString(plane.normal.z))); assertTrue("distance", string.contains(Double.toString(plane.distance))); }