### Question:
PlacesClient extends AbstractClient { public JSONObject getByObjectID(@NonNull String objectID) throws AlgoliaException { return getRequest("/1/places/" + objectID, null, false, null) ; } PlacesClient(@NonNull String applicationID, @NonNull String apiKey);  PlacesClient(); Request searchAsync(@NonNull PlacesQuery params, @NonNull CompletionHandler completionHandler); JSONObject getByObjectID(@NonNull String objectID);  }### Answer:
@Test public void getByObjectIDValid() throws Exception { final JSONObject rivoli = places.getByObjectID(OBJECT_ID_RUE_RIVOLI); assertNotNull(rivoli); assertEquals(OBJECT_ID_RUE_RIVOLI, rivoli.getString("objectID")); }
@Test(expected = AlgoliaException.class) public void getByObjectIDInvalid() throws Exception { places.getByObjectID("4242424242"); }