URI uri = new URI("greetings/1");
ResourceMethod method = ResourceMethod.GET;
RecordTemplate inputRecord = null;
Map<String, String> headers = Collections.emptyMap();
RestResponseDecoder<Greeting> decoder = new EntityResponseDecoder<Greeting>(Greeting.class);
ResourceSpec resourceSpec = new ResourceSpecImpl(EnumSet.of(method), null, null, Long.class, Greeting.class, Collections.<String, Object>emptyMap());
Request<Greeting> request = new Request<Greeting>(uri, method, inputRecord, headers, decoder, resourceSpec);
ResponseFuture<Greeting> responseFuture = REST_CLIENT.sendRequest(request);
Greeting entity = responseFuture.getResponse().getEntity();
Assert.assertEquals(entity.getId(), new Long(1L));
Assert.assertEquals(responseFuture.getResponse().getHeader(RestConstants.HEADER_RESTLI_PROTOCOL_VERSION),