### Question:
Orientation implements Serializable { public static Orientation fromC(int cAngle, boolean cTranspose) { return fromJava(cTranspose ? cAngle % 3600 + 900 : cAngle, false, cTranspose); } 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 testFromC() { System.out.println("testFromC"); for (int iT = 0; iT <= 1; iT++) { boolean cTranspose = iT != 0; for (int cAngle = -200; cAngle < 3800; cAngle++) { Orientation or = Orientation.fromC(cAngle, cTranspose); assertEquals((cAngle + 3600) % 3600, or.getCAngle()); assertEquals(cTranspose, or.isCTranspose()); assertEquals(false, or.isXMirrored()); assertEquals(cTranspose, or.isYMirrored()); assertEquals(cTranspose ? (cAngle + 900) % 3600 : (cAngle + 3600) % 3600, or.getAngle()); Orientation orJ = Orientation.fromJava(or.getAngle(), or.isXMirrored(), or.isYMirrored()); assertEquals(or.getCAngle(), orJ.getCAngle()); assertEquals(or.isCTranspose(), orJ.isCTranspose()); } } }