### Question:
GeoTemplate extends AbstractTwitterOperations implements GeoOperations { public List<Place> search(double latitude, double longitude) { return search(latitude, longitude, null, null, null); } GeoTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser, boolean isAuthorizedForApp); Place getPlace(String placeId); List<Place> reverseGeoCode(double latitude, double longitude); List<Place> reverseGeoCode(double latitude, double longitude, PlaceType granularity, String accuracy); List<Place> search(double latitude, double longitude); List<Place> search(double latitude, double longitude, PlaceType granularity, String accuracy, String query); SimilarPlaces findSimilarPlaces(double latitude, double longitude, String name); SimilarPlaces findSimilarPlaces(double latitude, double longitude, String name, String streetAddress, String containedWithin); Place createPlace(PlacePrototype placePrototype);  }### Answer:
@Test public void search_pointOnly() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833); assertPlaces(places); }
@Test public void search_pointAndGranularity() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833, PlaceType.CITY, null, null); assertPlaces(places); }
@Test public void search_pointAndPOIGranularity() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833, PlaceType.POINT_OF_INTEREST, null, null); assertPlaces(places); }
@Test public void search_pointGranularityAndAccuracy() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833, PlaceType.CITY, "5280ft", null); assertPlaces(places); }
@Test public void search_pointAndAccuracy() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833, null, "5280ft", null); assertPlaces(places); }
@Test public void search_pointGranularityAccuracyAndQuery() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("places-list"), APPLICATION_JSON)); List<Place> places = twitter.geoOperations().search(33.050278, -96.745833, PlaceType.CITY, "5280ft", "Public School"); assertPlaces(places); }