### Question:
TSAGeoMag { public double getEastIntensity( double dlat, double dlong ) { calcGeoMag( dlat, dlong, defaultDate, defaultAltitude ); return by; } 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 getEastIntensity() { assertEquals(-445.9, magModel.getEastIntensity(80, 0, 2015, 0), 5.0E-02); assertEquals(392.9, magModel.getEastIntensity(0, 120, 2015, 0), 5.0E-02); assertEquals(15761.1, magModel.getEastIntensity(-80, 240, 2015, 0), 5.0E-02); assertEquals(-471.6, magModel.getEastIntensity(80, 0, 2015, 100), 5.0E-02); assertEquals(364.4, magModel.getEastIntensity(0, 120, 2015, 100), 5.0E-02); assertEquals(14791.5, magModel.getEastIntensity(-80, 240, 2015, 100), 5.0E-02); assertEquals(-317.1, magModel.getEastIntensity(80, 0, 2017.5, 0), 5.0E-02); assertEquals(222.5, magModel.getEastIntensity(0, 120, 2017.5, 0), 5.0E-02); assertEquals(15781.4, magModel.getEastIntensity(-80, 240, 2017.5, 0), 5.0E-02); assertEquals(-348.5, magModel.getEastIntensity(80, 0, 2017.5, 100), 5.0E-02); assertEquals(209.5, magModel.getEastIntensity(0, 120, 2017.5, 100), 5.0E-02); assertEquals(14808.8, magModel.getEastIntensity(-80, 240, 2017.5, 100), 5.0E-02); assertEquals(-317.1, magModel.getEastIntensity(80, 0), 5.0E-02); assertEquals(222.5, magModel.getEastIntensity(0, 120), 5.0E-02); assertEquals(15781.4, magModel.getEastIntensity(-80, 240), 5.0E-02); }