### Question:
BBox implements Shape, Cloneable { @Override public GHPoint getCenter() { return new GHPoint((maxLat + minLat) / 2, (maxLon + minLon) / 2); } @JsonCreator  BBox(double[] coords);  BBox(double minLon, double maxLon, double minLat, double maxLat);  BBox(double minLon, double maxLon, double minLat, double maxLat, double minEle, double maxEle);  BBox(double minLon, double maxLon, double minLat, double maxLat, double minEle, double maxEle, boolean elevation); static BBox createInverse(boolean elevation); boolean hasElevation(); void update(double lat, double lon); void update(double lat, double lon, double elev); BBox calculateIntersection(BBox bBox); @Override BBox clone(); @Override boolean intersect(Shape s); @Override boolean contains(Shape s); boolean intersect(Circle s); boolean intersect(BBox o); @Override boolean contains(double lat, double lon); boolean contains(BBox b); boolean contains(Circle c); @Override String toString(); String toLessPrecisionString(); @Override BBox getBounds(); @Override GHPoint getCenter(); @Override boolean equals(Object obj); @Override int hashCode(); boolean isValid(); List<Double> toGeoJson(); @Override double calculateArea(); static BBox parseTwoPoints(String objectAsString); static BBox parseBBoxString(String objectAsString); public double minLon; public double maxLon; public double minLat; public double maxLat; public double minEle; public double maxEle; }### Answer:
@Test public void testGetCenter() { BBox bBox = new BBox(0, 2, 0, 2); GHPoint center = bBox.getCenter(); assertEquals(1, center.getLat(), .00001); assertEquals(1, center.getLon(), .00001); }