### Question:
GeoTemplate extends AbstractTwitterOperations implements GeoOperations { public SimilarPlaces findSimilarPlaces(double latitude, double longitude, String name) { return findSimilarPlaces(latitude, longitude, name, 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 findSimilarPlaces() { mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("similar-places"), APPLICATION_JSON)); SimilarPlaces similarPlaces = twitter.geoOperations().findSimilarPlaces(37.7821120598956, -122.400612831116, "Twitter HQ", "795 Folsom St", "2e056b6d9c0ff3cd"); assertEquals("9c8072b2a6788ee530e8c8cbb487107c", similarPlaces.getPlacePrototype().getCreateToken()); assertEquals(37.7821120598956, similarPlaces.getPlacePrototype().getLatitude(), 0.0000001); assertEquals(-122.400612831116, similarPlaces.getPlacePrototype().getLongitude(), 0.0000001); assertEquals("Twitter HQ", similarPlaces.getPlacePrototype().getName()); assertEquals("2e056b6d9c0ff3cd", similarPlaces.getPlacePrototype().getContainedWithin()); assertEquals(2, similarPlaces.size()); assertEquals("851a1ba23cb8c6ee", similarPlaces.get(0).getId()); assertEquals("twitter", similarPlaces.get(0).getName()); assertEquals("twitter, Twitter HQ", similarPlaces.get(0).getFullName()); assertNull(similarPlaces.get(0).getStreetAddress()); assertEquals("United States", similarPlaces.get(0).getCountry()); assertEquals("US", similarPlaces.get(0).getCountryCode()); assertEquals(PlaceType.POINT_OF_INTEREST, similarPlaces.get(0).getPlaceType()); assertEquals("247f43d441defc03", similarPlaces.get(1).getId()); assertEquals("Twitter HQ", similarPlaces.get(1).getName()); assertEquals("Twitter HQ, San Francisco", similarPlaces.get(1).getFullName()); assertEquals("795 Folsom St", similarPlaces.get(1).getStreetAddress()); assertEquals("United States", similarPlaces.get(1).getCountry()); assertEquals("US", similarPlaces.get(1).getCountryCode()); assertEquals(PlaceType.POINT_OF_INTEREST, similarPlaces.get(1).getPlaceType()); }