@Test
public void getRecordShouldRetrieveARecordOverHttp() throws Exception {

    String resourceUrl = "http://whatever/api/enquiries/dfb2031ebfb468f5200edc";
    String response = "{\"_id\" : \"couch_id\", \"child_name\":\"subhas\",\"unique_identifier\":\"78223s4h1e468f5200edc\"}";
    getFakeHttpLayer().addHttpResponseRule("http://whatever/api/enquiries/dfb2031ebfb468f5200edc/", response);
    EnquirySyncService enquirySyncService = new EnquirySyncService(mockContext(), enquiryHttpDao, enquiryRepository);
    Enquiry expectedEnquiry = new Enquiry(response, "createdBy");
    final Enquiry downloadedEnquiry = enquirySyncService.getRecord(resourceUrl);
    assertThat(downloadedEnquiry.getUniqueId(), is(expectedEnquiry.getUniqueId()));
}