@Test
public void testAngleInterpolation() {

  final double i1 = Astronomical.interpolateAngles(/* value */ 1, /* previousValue */ -1,
      /* nextValue */ 3, /* factor */ 0.6);
  assertThat(i1).isWithin(0.000001).of(2.2);
  final double i2 = Astronomical.interpolateAngles(/* value */ 1, /* previousValue */ 359,
      /* nextValue */ 3, /* factor */ 0.6);
  assertThat(i2).isWithin(0.000001).of(2.2);
}