@SuppressWarnings("deprecation")
public void testDeprecatedRequestCreation()
throws URISyntaxException, RemoteInvocationException
{
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);