response = wr.type(MediaType.APPLICATION_XML).post(ClientResponse.class, customer);
Assert.assertEquals(201, response.getStatus());
Link orders = shoppingLinks.get("orders");
Order order = new Order();
order.setTotal("$199.99");
order.setCustomer(customer);
order.setDate(new Date().toString());
LineItem item = new LineItem();
item.setCost("$199.99");
item.setProduct("iPhone");
order.setLineItems(new ArrayList<LineItem>());
order.getLineItems().add(item);
System.out.println();
System.out.println("** Create an order through this URL: " + orders.getHref());
wr = c.resource(orders.getHref());
response = wr.type(MediaType.APPLICATION_XML).post(ClientResponse.class, order);