### Question:
BoundingBox implements Parcelable, Serializable { public double getCenterLongitude() { return getCenterLongitude(mLonWest, mLonEast); } BoundingBox(final double north, final double east, final double south, final double west);  BoundingBox(); void set(final double north, final double east, final double south, final double west); BoundingBox clone(); BoundingBox concat(BoundingBox bb2); @Deprecated GeoPoint getCenter(); GeoPoint getCenterWithDateLine(); double getDiagonalLengthInMeters(); double getLatNorth(); double getLatSouth(); double getCenterLatitude(); double getCenterLongitude(); static double getCenterLongitude(final double pWest, final double pEast); double getActualNorth(); double getActualSouth(); double getLonEast(); double getLonWest(); double getLatitudeSpan(); @Deprecated double getLongitudeSpan(); void setLatNorth(double mLatNorth); void setLatSouth(double mLatSouth); void setLonEast(double mLonEast); void setLonWest(double mLonWest); double getLongitudeSpanWithDateLine(); PointF getRelativePositionOfGeoPointInBoundingBoxWithLinearInterpolation(
			final double aLatitude, final double aLongitude, final PointF reuse); PointF getRelativePositionOfGeoPointInBoundingBoxWithExactGudermannInterpolation(
			final double aLatitude, final double aLongitude, final PointF reuse); GeoPoint getGeoPointOfRelativePositionWithLinearInterpolation(final float relX,
			final float relY); GeoPoint getGeoPointOfRelativePositionWithExactGudermannInterpolation(final float relX,
			final float relY); BoundingBox increaseByScale(final float pBoundingboxPaddingRelativeScale); @Override String toString(); GeoPoint bringToBoundingBox(final double aLatitude, final double aLongitude); static BoundingBox fromGeoPoints(final List<? extends IGeoPoint> partialPolyLine); boolean contains(final IGeoPoint pGeoPoint); boolean contains(final double aLatitude, final double aLongitude); @Override int describeContents(); @Override void writeToParcel(final Parcel out, final int arg1); @Deprecated int getLatitudeSpanE6(); @Deprecated int getLongitudeSpanE6(); boolean overlaps(final BoundingBox pBoundingBox, double pZoom); static BoundingBox fromGeoPointsSafe(List<GeoPoint> points); static final Parcelable.Creator<BoundingBox> CREATOR; }### Answer:
@Test public void testGetCenterLongitude() { assertEquals(1.5, BoundingBox.getCenterLongitude(1, 2), TOLERANCE); assertEquals(-178.5, BoundingBox.getCenterLongitude(2, 1), TOLERANCE); }