List<LineItem> lineItems = new ArrayList<LineItem>();
String itemName = "cheese";
lineItems.add(new LineItem(itemName, 2, 1000000L, "USD"));
Cart cart = new Cart(lineItems, "Hungry Bird", "4111-1111-1111-1111");
cart = client.createCart(cart);
Order order = client.placeOrder(cart);
System.out.println("Placed order: " + gson.toJson(order));
List<Order> queriedOrders = client.query(itemName);
System.out.printf("Queried orders by item name (%s): %s\n",
itemName, gson.toJson(queriedOrders));