@Test
public void getEnquiryShouldRetrieveEnquiryFromApi() throws Exception {

    EnquiryHttpDao enquiryHttpDao = new EnquiryHttpDao(apiRoot);
    String url = "http://blah.com/123";
    Robolectric.getFakeHttpLayer().setDefaultHttpResponse(200, "{\"id\":\"123\"}");
    Enquiry enquiry = enquiryHttpDao.get(url);
    assertThat(enquiry.getString("id"), is("123"));
    final RequestLine requestLine = Robolectric.getSentHttpRequest(0).getRequestLine();
    assertThat(requestLine.getUri(), is(url + "/"));
    assertThat(requestLine.getMethod(), is("GET"));
}