### Question:
Orientation implements Serializable { public String toString() { return toJelibString(); } private  Orientation(int jAngle, boolean jMirrorX, boolean jMirrorY, Orientation inverse); static Orientation fromJava(int jAngle, boolean jMirrorX, boolean jMirrorY); static Orientation fromC(int cAngle, boolean cTranspose); static Orientation fromAngle(int angle); Orientation inverse(); Orientation canonic(); Orientation concatenate(Orientation that); int getCAngle(); boolean isCTranspose(); int getAngle(); boolean isXMirrored(); boolean isYMirrored(); boolean isManhattan(); AffineTransform pureRotate(); AffineTransform rotateAbout(Point2D c); AffineTransform rotateAbout(double cX, double cY); AffineTransform rotateAbout(double aX, double aY, double bX, double bY); int transformAngle(int angle); void transformPoints(int numPoints, int[] srcCoords, int[] dstCoords); void transformPoints(int numPoints, int[] coords); void rectangleBounds(Rectangle2D src, Point2D c, Rectangle2D dst); void rectangleBounds(double xl, double yl, double xh, double yh, double cx, double cy, Rectangle2D dst); void rectangleBounds(int[] coords); String toJelibString(); String toString(); static final Orientation IDENT; static final Orientation R; static final Orientation RR; static final Orientation RRR; static final Orientation X; static final Orientation XR; static final Orientation XRR; static final Orientation XRRR; static final Orientation Y; static final Orientation YR; static final Orientation YRR; static final Orientation YRRR; static final Orientation XY; static final Orientation XYR; static final Orientation XYRR; static final Orientation XYRRR; }### Answer:
@Test public void testToString() { System.out.println("testToString"); assertEquals("", Orientation.fromJava(0, false, false).toString()); assertEquals("R", Orientation.fromJava(900, false, false).toString()); assertEquals("RR", Orientation.fromJava(1800, false, false).toString()); assertEquals("RRR", Orientation.fromJava(2700, false, false).toString()); assertEquals("X", Orientation.fromJava(0, true, false).toString()); assertEquals("XR", Orientation.fromJava(900, true, false).toString()); assertEquals("XRR", Orientation.fromJava(1800, true, false).toString()); assertEquals("XRRR", Orientation.fromJava(2700, true, false).toString()); assertEquals("Y", Orientation.fromJava(0, false, true).toString()); assertEquals("YR", Orientation.fromJava(900, false, true).toString()); assertEquals("YRR", Orientation.fromJava(1800, false, true).toString()); assertEquals("YRRR", Orientation.fromJava(2700, false, true).toString()); assertEquals("XY", Orientation.fromJava(0, true, true).toString()); assertEquals("XYR", Orientation.fromJava(900, true, true).toString()); assertEquals("XYRR", Orientation.fromJava(1800, true, true).toString()); assertEquals("XYRRR", Orientation.fromJava(2700, true, true).toString()); }