### Question:
TSAGeoMag { public double getVerticalIntensity( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return bz; } 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 getVerticalIntensity() { assertEquals(54432.3, magModel.getVerticalIntensity(80, 0, 2015, 0), 5.0E-02); assertEquals(-11252.4, magModel.getVerticalIntensity(0, 120, 2015, 0), 5.0E-02); assertEquals(-52919.1, magModel.getVerticalIntensity(-80, 240, 2015, 0), 5.0E-02); assertEquals(52269.8, magModel.getVerticalIntensity(80, 0, 2015, 100), 5.0E-02); assertEquals(-10773.4, magModel.getVerticalIntensity(0, 120, 2015, 100), 5.0E-02); assertEquals(-50378.6, magModel.getVerticalIntensity(-80, 240, 2015, 100), 5.0E-02); assertEquals(54459.2, magModel.getVerticalIntensity(80, 0, 2017.5, 0), 5.0E-02); assertEquals(-11030.1, magModel.getVerticalIntensity(0, 120, 2017.5, 0), 5.0E-02); assertEquals(-52687.9, magModel.getVerticalIntensity(-80, 240, 2017.5, 0), 5.0E-02); assertEquals(52292.7, magModel.getVerticalIntensity(80, 0, 2017.5, 100), 5.0E-02); assertEquals(-10564.2, magModel.getVerticalIntensity(0, 120, 2017.5, 100), 5.0E-02); assertEquals(-50163.0, magModel.getVerticalIntensity(-80, 240, 2017.5, 100), 5.0E-02); assertEquals(54459.2, magModel.getVerticalIntensity(80, 0), 5.0E-02); assertEquals(-11030.1, magModel.getVerticalIntensity(0, 120), 5.0E-02); assertEquals(-52687.9, magModel.getVerticalIntensity(-80, 240), 5.0E-02); }