@Test
public void shouldGetPotentialMatch() throws IOException, JSONException, HttpException {

    String resourceUrl = "http://whatever/api/potential_matches/dfb2031ebfb468f5200edc";
    String response = "{\"_id\" : \"couch_id\", \"child_id\":\"a0b2135fff78223s4h1edc\",\"enquiry_id\":\"78223s4h1e468f5200edc\"}";
    getFakeHttpLayer().addHttpResponseRule("http://whatever/api/potential_matches/dfb2031ebfb468f5200edc/", response);
    PotentialMatchSyncService service = new PotentialMatchSyncService(mockContext(), repository);
    PotentialMatch record = service.getRecord(resourceUrl);
    assertEquals("a0b2135fff78223s4h1edc", record.getChildId());
    assertEquals("78223s4h1e468f5200edc", record.getEnquiryId());
    assertEquals("couch_id", record.getUniqueId());
}