assertNotNull(basket.getId());
assertEquals(basket.getItems().size(), selectedItems.size());
System.out.println(basket.getItems());
assertTrue(resource(basket).hasLink("payment"));
response = resource(basket).getLink("payment").follow().as(XML).accept(XML).post(new Payment(basket.getCost()));
Payment payment = response.getResource();
assertEquals(Status.ACCEPTED, payment.getStatus());
System.out.println(payment.getStatus());
}