package annos;

import org.restlet.resource.ClientResource;

import client.Customer;

public class TestClientResource {

    public static void main(String[] args) throws Exception {

        ClientResource clientResource = new ClientResource(
                "http://localhost:8182/rest/test");
        TestResource testResource = clientResource.wrap(TestResource.class);

        // Retrieve the JSON value
        Customer result = testResource.retrieve();

        if (result != null) {
            System.out.println(result);
        }

        // testResource.remove();
        testResource.stop();
    }
}
