### Question:
Angle extends AAngularMeasure implements IAngle { public static Angle ofDeg(double deg) { return new Angle(deg2rad(deg)); } private  Angle(); private  Angle(double rad); static Angle zero(); static Angle ofRad(double rad); static Angle ofDeg(double deg); static Angle ofRotation(double turns); static Angle ofVec(IVector2 vector); static Angle ofAngularMeasure(IAngularMeasure angularMeasure); @Override IAngle add(final IAngularMeasure angle); @Override IAngle add(final double angle); @Override IAngle subtract(final IAngularMeasure angle); @Override IAngle subtract(final double angle); @Override IAngle multiply(final double factor);  }### Answer:
@Test public void ofDeg() { assertEquals(0, Angle.ofDeg(0).asRad(), ACCURACY); assertEquals(0, Angle.ofDeg(360).asRad(), ACCURACY); assertEquals(Math.PI / 2, Angle.ofDeg(90).asRad(), ACCURACY); assertEquals(Math.PI / 2, Angle.ofDeg(-270).asRad(), ACCURACY); }