### Question:
TSAGeoMag { public double getDeclination( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return dec; } TSAGeoMag(); double getDeclination( double dlat, double dlong ); double getDeclination( double dlat, double dlong, double year, double altitude ); double getIntensity( double dlat, double dlong ); double getIntensity( double dlat, double dlong, double year, double altitude ); double getHorizontalIntensity( double dlat, double dlong ); double getHorizontalIntensity( double dlat, double dlong, double year, double altitude ); double getVerticalIntensity( double dlat, double dlong ); double getVerticalIntensity( double dlat, double dlong, double year, double altitude ); double getNorthIntensity( double dlat, double dlong ); double getNorthIntensity( double dlat, double dlong, double year, double altitude ); double getEastIntensity( double dlat, double dlong ); double getEastIntensity( double dlat, double dlong, double year, double altitude ); double getDipAngle( double dlat, double dlong ); double getDipAngle( double dlat, double dlong, double year, double altitude ); double decimalYear(GregorianCalendar cal);  }### Answer:
@Test public final void getDeclination() { assertEquals(-3.85, magModel.getDeclination(80, 0, 2015, 0), 5.0E-03); assertEquals(0.57, magModel.getDeclination(0, 120, 2015, 0), 5.0E-03); assertEquals(69.81, magModel.getDeclination(-80, 240, 2015, 0), 5.0E-03); assertEquals(-4.27, magModel.getDeclination(80, 0, 2015, 100), 5.0E-03); assertEquals(0.56, magModel.getDeclination(0, 120, 2015, 100), 5.0E-03); assertEquals(69.22, magModel.getDeclination(-80, 240, 2015, 100), 5.0E-03); assertEquals(-2.75, magModel.getDeclination(80, 0, 2017.5, 0), 5.0E-03); assertEquals(0.32, magModel.getDeclination(0, 120, 2017.5, 0), 5.0E-03); assertEquals(69.58, magModel.getDeclination(-80, 240, 2017.5, 0), 5.0E-03); assertEquals(-3.17, magModel.getDeclination(80, 0, 2017.5, 100), 5.0E-03); assertEquals(0.32, magModel.getDeclination(0, 120, 2017.5, 100), 5.0E-03); assertEquals(69.00, magModel.getDeclination(-80, 240, 2017.5, 100), 5.0E-03); assertEquals(-2.75, magModel.getDeclination(80, 0), 5.0E-03); assertEquals(0.32, magModel.getDeclination(0, 120), 5.0E-03); assertEquals(69.58, magModel.getDeclination(-80, 240), 5.0E-03); }