### Question:
TSAGeoMag { public double getHorizontalIntensity( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return bh; } 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 getHorizontalIntensity() { assertEquals(6642.1, magModel.getHorizontalIntensity(80, 0, 2015, 0), 5.0E-02); assertEquals(39520.2, magModel.getHorizontalIntensity(0, 120, 2015, 0), 5.0E-02); assertEquals(16793.5, magModel.getHorizontalIntensity(-80, 240, 2015, 0), 5.0E-02); assertEquals(6331.9, magModel.getHorizontalIntensity(80, 0, 2015, 100), 5.0E-02); assertEquals(37537.3, magModel.getHorizontalIntensity(0, 120, 2015, 100), 5.0E-02); assertEquals(15820.7, magModel.getHorizontalIntensity(-80, 240, 2015, 100), 5.0E-02); assertEquals(6607.0, magModel.getHorizontalIntensity(80, 0, 2017.5, 0), 5.0E-02); assertEquals(39572.0, magModel.getHorizontalIntensity(0, 120, 2017.5, 0), 5.0E-02); assertEquals(16839.1, magModel.getHorizontalIntensity(-80, 240, 2017.5, 0), 5.0E-02); assertEquals(6300.1, magModel.getHorizontalIntensity(80, 0, 2017.5, 100), 5.0E-02); assertEquals(37586.1, magModel.getHorizontalIntensity(0, 120, 2017.5, 100), 5.0E-02); assertEquals(15862.0, magModel.getHorizontalIntensity(-80, 240, 2017.5, 100), 5.0E-02); assertEquals(6607.0, magModel.getHorizontalIntensity(80, 0), 5.0E-02); assertEquals(39572.0, magModel.getHorizontalIntensity(0, 120), 5.0E-02); assertEquals(16839.1, magModel.getHorizontalIntensity(-80, 240), 5.0E-02); }