### Question:
TSAGeoMag { public double getIntensity( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return ti; } 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 getIntensity() { assertEquals(54836.0, magModel.getIntensity(80, 0, 2015, 0), 5.0E-02); assertEquals(41090.9, magModel.getIntensity(0, 120, 2015, 0), 5.0E-02); assertEquals(55519.8, magModel.getIntensity(-80, 240, 2015, 0), 5.0E-02); assertEquals(52652.0, magModel.getIntensity(80, 0, 2015, 100), 5.0E-02); assertEquals(39052.7, magModel.getIntensity(0, 120, 2015, 100), 5.0E-02); assertEquals(52804.4, magModel.getIntensity(-80, 240, 2015, 100), 5.0E-02); assertEquals(54858.5, magModel.getIntensity(80, 0, 2017.5, 0), 5.0E-02); assertEquals(41080.5, magModel.getIntensity(0, 120, 2017.5, 0), 5.0E-02); assertEquals(55313.4, magModel.getIntensity(-80, 240, 2017.5, 0), 5.0E-02); assertEquals(52670.9, magModel.getIntensity(80, 0, 2017.5, 100), 5.0E-02); assertEquals(39042.5, magModel.getIntensity(0, 120, 2017.5, 100), 5.0E-02); assertEquals(52611.1, magModel.getIntensity(-80, 240, 2017.5, 100), 5.0E-02); assertEquals(54858.5, magModel.getIntensity(80, 0), 5.0E-02); assertEquals(41080.5, magModel.getIntensity(0, 120), 5.0E-02); assertEquals(55313.4, magModel.getIntensity(-80, 240), 5.0E-02); }